Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jozef Lawrynowicz <jozef.l@mittosystems.com>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [committed] MSP430: sim: Increase main memory region size
Date: Fri, 7 Aug 2020 13:36:34 +0100	[thread overview]
Message-ID: <20200807123634.rwbk7dfzgn2u2svh@jozef-acer-manjaro> (raw)
In-Reply-To: <87364ymyaq.fsf@tromey.com>

Hi,

On Fri, Aug 07, 2020 at 06:32:29AM -0600, Tom Tromey wrote:
> >>>>> "Jozef" == Jozef Lawrynowicz <jozef.l@mittosystems.com> writes:
> 
> I don't know much about MSP430 or the sim, but I noticed a little
> oddity:
> 
> Jozef> The area between 0xFF00 and 0xFFC0 is unallocated in the simulator
> Jozef> memory map, so extend the main memory region up to 0xFFC0 to allow the
> Jozef> simulator to make use of the extra 192 bytes of space.
> 
> The intro text says 0xFFC0...
> 
> Jozef> +    sim_do_commandf (sd, "memory-region 0x500,0xfac0");  /* RAM and/or ROM */
> 
> ... but the patch says 0xfac0.  I think one or the other should be
> changed.

The memory-region command takes an origin address and size as arguments,
in the same way a linker script memory map does.

So 0xfac0 is not the end of the region, but the size of the region, and
of course 0x500 + 0xfac0 = 0xffc0.

Thanks,
Jozef
> 
> Tom


  reply	other threads:[~2020-08-07 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-07 10:06 Jozef Lawrynowicz
2020-08-07 12:32 ` Tom Tromey
2020-08-07 12:36   ` Jozef Lawrynowicz [this message]
2020-08-07 12:54     ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200807123634.rwbk7dfzgn2u2svh@jozef-acer-manjaro \
    --to=jozef.l@mittosystems.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox