aboutsummaryrefslogtreecommitdiff
path: root/sim/msp430
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2020-08-03 19:58:33 +0100
committerJozef Lawrynowicz <jozef.l@mittosystems.com>2020-08-07 11:01:22 +0100
commit4b48e6d46d7b5cf8758001aded9e74b1eca42c7d (patch)
tree5a13e8d450b2a84313b487eb571164f7c5382ad2 /sim/msp430
parent939bf1224d368e221d7fbeb5e5f258830a41e071 (diff)
downloadgdb-4b48e6d46d7b5cf8758001aded9e74b1eca42c7d.zip
gdb-4b48e6d46d7b5cf8758001aded9e74b1eca42c7d.tar.gz
gdb-4b48e6d46d7b5cf8758001aded9e74b1eca42c7d.tar.bz2
MSP430: sim: Increase main memory region size
The area between 0xFF00 and 0xFFC0 is unallocated in the simulator memory map, so extend the main memory region up to 0xFFC0 to allow the simulator to make use of the extra 192 bytes of space. sim/msp430/ChangeLog: * msp430-sim.c (sim_open): Increase the size of the main memory region to 0xFAC0.
Diffstat (limited to 'sim/msp430')
-rw-r--r--sim/msp430/ChangeLog5
-rw-r--r--sim/msp430/msp430-sim.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/msp430/ChangeLog b/sim/msp430/ChangeLog
index 41da2a7..345c804 100644
--- a/sim/msp430/ChangeLog
+++ b/sim/msp430/ChangeLog
@@ -1,3 +1,8 @@
+2020-08-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
+
+ * msp430-sim.c (sim_open): Increase the size of the main memory region
+ to 0xFAC0.
+
2020-08-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* msp430-sim.c (put_op): For unsigned multiplication, explicitly cast
diff --git a/sim/msp430/msp430-sim.c b/sim/msp430/msp430-sim.c
index a330c6c..7be32cb 100644
--- a/sim/msp430/msp430-sim.c
+++ b/sim/msp430/msp430-sim.c
@@ -138,7 +138,7 @@ sim_open (SIM_OPEN_KIND kind,
if (sim_core_read_buffer (sd, MSP430_CPU (sd), read_map, &c, 0x2, 1) == 0)
sim_do_commandf (sd, "memory-region 0,0x20"); /* Needed by the GDB testsuite. */
if (sim_core_read_buffer (sd, MSP430_CPU (sd), read_map, &c, 0x500, 1) == 0)
- sim_do_commandf (sd, "memory-region 0x500,0xfa00"); /* RAM and/or ROM */
+ sim_do_commandf (sd, "memory-region 0x500,0xfac0"); /* RAM and/or ROM */
if (sim_core_read_buffer (sd, MSP430_CPU (sd), read_map, &c, 0xfffe, 1) == 0)
sim_do_commandf (sd, "memory-region 0xffc0,0x40"); /* VECTORS. */
if (sim_core_read_buffer (sd, MSP430_CPU (sd), read_map, &c, 0x10000, 1) == 0)