From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32655 invoked by alias); 28 Apr 2004 13:30:42 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 32643 invoked from network); 28 Apr 2004 13:30:41 -0000 Received: from unknown (HELO mailgw.univr.it) (157.27.6.150) by sources.redhat.com with SMTP; 28 Apr 2004 13:30:41 -0000 Received: (qmail 32816 invoked from network); 28 Apr 2004 13:10:59 -0000 Received: from unknown (HELO profs.sci.univr.it) (157.27.252.10) by mailgw.univr.it with SMTP; 28 Apr 2004 13:10:59 -0000 Received: from toti (toti.sci.univr.it [157.27.242.42]) by profs.sci.univr.it (8.9.3/8.9.3) with ESMTP id PAA15104; Wed, 28 Apr 2004 15:30:40 +0200 (MET DST) Message-ID: <00ca01c42d24$fdfcc410$2af21b9d@toti> From: "Stefano Martini" To: Cc: "GDB" References: <006c01c42930$56a2b7d0$2af21b9d@toti> <001801c42b64$17649c10$2af21b9d@toti> Subject: Re: new board Date: Wed, 28 Apr 2004 13:58:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00174.txt.bz2 Thanks for the help, I have defined all the memory regions for my board in the file interp.c: sim_do_command(sd,"memory region ......") When I start the run program (mipsel-elf-run --board .....) to execute a example program I get the following error messages: mips-core: 1 byte read to unmapped address 0x0 at 0x800ab230 mips-core: 4 byte read to unmapped address 0x0 at 0x0 mips-core: 4 byte read to unmapped address 0x0 at 0x0 mips-core: 4 byte read to unmapped address 0x0 at 0x0 mips-core: 4 byte read to unmapped address 0x0 at 0x0 mips-core: 4 byte read to unmapped address 0x0 at 0x0 I have no address in region 0x0. Is this a problem related to virtual and physical addresses? I think "physical address" is an address generated by the processor to access a memory region. What is a virtual address? Thanks in advance. Stefano ----- Original Message ----- From: cgd@broadcom.com To: Stefano Martini Cc: GDB Sent: Monday, April 26, 2004 7:56 PM Subject: Re: new board Unfortunately, as you've discovered, there's not much documentation related to the simulator(s)... At Mon, 26 Apr 2004 09:57:12 +0200, Stefano Martini wrote: > I have seen two interesting commands: > > sim_do_command(sd,"memory region .....") > > sim_do_commandf(sd,"memory alias...."); > > Which are the differences between sim_do_command and > sim_do_commandf ? looking at the changelogs: * sim-utils.c (sim_do_commandf): New function, printf version of sim_do_command. That difference seems borne out by their usage. > And more, which are the differences between memory region > and memory alias? memory region creates a region of memory to be used by the simulator. memory alias creates a region in the address space that aliases an existing region of memory. As you can see from some of the code already there, this is used to mock-up kseg1. (This method is, IMO, not ideal.) chris