* dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
authorStephane Carrez <stcarrez@nerim.fr>
Tue, 13 Aug 2002 07:57:18 +0000 (07:57 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Tue, 13 Aug 2002 07:57:18 +0000 (07:57 +0000)
when IO mapping changed, not when internal RAM mapping is changed.

sim/m68hc11/ChangeLog
sim/m68hc11/dv-m68hc11.c

index 95047da6f2f7c84a190851e7ee8d735cd4cb33f9..3f8c0bdda6530447d1a67501c85f196ff13cc80d 100644 (file)
@@ -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.
index 25449cdb571357000ea29d470e5cb47bc5ee5367..21064296adbb7cf8d1ca4a066ede130deccbaff7 100644 (file)
@@ -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))
          {
            ;
          }
This page took 0.041281 seconds and 4 git commands to generate.