From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7503 invoked by alias); 26 Apr 2004 17:57:10 -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 7479 invoked from network); 26 Apr 2004 17:57:07 -0000 Received: from unknown (HELO mms1.broadcom.com) (63.70.210.58) by sources.redhat.com with SMTP; 26 Apr 2004 17:57:07 -0000 Received: from 63.70.210.1 by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (MMS v5.6.0)); Mon, 26 Apr 2004 10:57:13 -0700 X-Server-Uuid: 97B92932-364A-4474-92D6-5CFE9C59AD14 Received: from mail-sj1-5.sj.broadcom.com (mail-sj1-5.sj.broadcom.com [10.16.128.236]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id KAA19888; Mon, 26 Apr 2004 10:56:18 -0700 (PDT) Received: from ldt-sj3-010.sj.broadcom.com (ldt-sj3-010 [10.21.64.10]) by mail-sj1-5.sj.broadcom.com (8.12.9/8.12.9/SSF) with ESMTP id i3QHupov001478; Mon, 26 Apr 2004 10:56:51 -0700 (PDT) Received: (from cgd@localhost) by ldt-sj3-010.sj.broadcom.com ( 8.11.6/8.9.3) id i3QHupP24845; Mon, 26 Apr 2004 10:56:51 -0700 X-Authentication-Warning: ldt-sj3-010.sj.broadcom.com: cgd set sender to cgd@broadcom.com using -f To: "Stefano Martini" cc: GDB Subject: Re: new board References: <006c01c42930$56a2b7d0$2af21b9d@toti> <001801c42b64$17649c10$2af21b9d@toti> From: cgd@broadcom.com Date: Mon, 26 Apr 2004 18:12:00 -0000 In-Reply-To: <001801c42b64$17649c10$2af21b9d@toti> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 X-WSS-ID: 6C9392F31O4334565-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00161.txt.bz2 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