summaryrefslogtreecommitdiff
path: root/sim/m68hc11/dv-m68hc11.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-08-13 07:57:18 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-08-13 07:57:18 +0000
commit8d339d2f8f1a6481fef03caef9c85d05d67e432a (patch)
treecbdf4e8133032c61024f41e7f29f80ffe9a3b454 /sim/m68hc11/dv-m68hc11.c
parent536c91b582153832ece1726286225321cc29bef4 (diff)
downloadgdb-8d339d2f8f1a6481fef03caef9c85d05d67e432a.tar.gz
* dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
when IO mapping changed, not when internal RAM mapping is changed.
Diffstat (limited to 'sim/m68hc11/dv-m68hc11.c')
-rw-r--r--sim/m68hc11/dv-m68hc11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/m68hc11/dv-m68hc11.c b/sim/m68hc11/dv-m68hc11.c
index 25449cdb571..21064296adb 100644
--- a/sim/m68hc11/dv-m68hc11.c
+++ b/sim/m68hc11/dv-m68hc11.c
@@ -1002,7 +1002,7 @@ m68hc11cpu_io_write (struct hw *me, sim_cpu *cpu,
/* Update IO mapping. Detach from the old address
and attach to the new one. */
- if ((old_bank & 0xF0) != (val & 0xF0))
+ if ((old_bank & 0x0F) != (val & 0x0F))
{
struct m68hc11cpu *controller = hw_data (me);
@@ -1018,7 +1018,7 @@ m68hc11cpu_io_write (struct hw *me, sim_cpu *cpu,
controller->attach_size,
me);
}
- if ((old_bank & 0x0F) != (val & 0x0F))
+ if ((old_bank & 0xF0) != (val & 0xF0))
{
;
}