aboutsummaryrefslogtreecommitdiff
path: root/sim/m68hc11/interp.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2000-08-11 18:44:59 +0000
committerStephane Carrez <stcarrez@nerim.fr>2000-08-11 18:44:59 +0000
commit63348d048f2d0bdaa82071e72708c7345ba2a3bf (patch)
tree5685aee1a9fafe24cfae4efa3e730b05c901243f /sim/m68hc11/interp.c
parent351aa9f6577b96f8e044432d2f04d2f6521c4873 (diff)
downloadgdb-63348d048f2d0bdaa82071e72708c7345ba2a3bf.zip
gdb-63348d048f2d0bdaa82071e72708c7345ba2a3bf.tar.gz
gdb-63348d048f2d0bdaa82071e72708c7345ba2a3bf.tar.bz2
Use address mapping levels for 68hc11 simulator (kill overlap hack)
Diffstat (limited to 'sim/m68hc11/interp.c')
-rw-r--r--sim/m68hc11/interp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/m68hc11/interp.c b/sim/m68hc11/interp.c
index c05f1b8..b004bc8 100644
--- a/sim/m68hc11/interp.c
+++ b/sim/m68hc11/interp.c
@@ -163,10 +163,11 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback,
/* Allocate core managed memory */
/* the monitor */
- sim_do_commandf (sd, "memory region 0x%lx,0x%lx",
+ sim_do_commandf (sd, "memory region 0x%lx@%d,0x%lx",
/* MONITOR_BASE, MONITOR_SIZE */
- 0x8000, 0x8000);
- sim_do_command (sd, " memory region 0x000,0x8000");
+ 0x8000, M6811_RAM_LEVEL, 0x8000);
+ sim_do_commandf (sd, "memory region 0x000@%d,0x8000",
+ M6811_RAM_LEVEL);
sim_hw_parse (sd, "/m68hc11/reg 0x1000 0x03F");
}
@@ -195,7 +196,6 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback,
sim_hw_parse (sd, "/m68hc11/nvram/reg 0x0 256");
sim_hw_parse (sd, "/m68hc11/nvram/file m68hc11.ram");
sim_hw_parse (sd, "/m68hc11/nvram/mode save-modified");
- sim_hw_parse (sd, "/m68hc11/nvram/overlap? true");
/*sim_hw_parse (sd, "/m68hc11 > cpu-reset reset /m68hc11/pram"); */
}
if (hw_tree_find_property (device_tree, "/m68hc11/m68hc11eepr/reg") == 0)