summaryrefslogtreecommitdiffstats
path: root/sim/m68hc11
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
commitabea9e28ead8f04e13313e749bfdf15d85f0bdbc (patch)
tree284def80447d4282633672da9f76124a5308b2dd /sim/m68hc11
parent63f36def60e0ebb54113a819db684887d036b387 (diff)
downloadppe42-binutils-abea9e28ead8f04e13313e749bfdf15d85f0bdbc.tar.gz
ppe42-binutils-abea9e28ead8f04e13313e749bfdf15d85f0bdbc.zip
* 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')
-rw-r--r--sim/m68hc11/ChangeLog5
-rw-r--r--sim/m68hc11/dv-m68hc11.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog
index 95047da6f2..3f8c0bdda6 100644
--- a/sim/m68hc11/ChangeLog
+++ b/sim/m68hc11/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
+
+ * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
+ when IO mapping changed, not when internal RAM mapping is changed.
+
2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
* m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
diff --git a/sim/m68hc11/dv-m68hc11.c b/sim/m68hc11/dv-m68hc11.c
index 25449cdb57..21064296ad 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))
{
;
}
OpenPOWER on IntegriCloud