32x: change irq hadling, make it more drc friendly
[picodrive.git] / pico / memory.c
index 13fc67e..d36ac62 100644 (file)
@@ -476,7 +476,7 @@ u32 PicoRead8_io(u32 a)
     goto end;\r
   }\r
 \r
-  if (!(PicoOpt & POPT_DIS_32X)) {\r
+  if (PicoOpt & POPT_EN_32X) {\r
     d = PicoRead8_32x(a);\r
     goto end;\r
   }\r
@@ -511,7 +511,7 @@ u32 PicoRead16_io(u32 a)
     goto end;\r
   }\r
 \r
-  if (!(PicoOpt & POPT_DIS_32X)) {\r
+  if (PicoOpt & POPT_EN_32X) {\r
     d = PicoRead16_32x(a);\r
     goto end;\r
   }\r
@@ -541,7 +541,7 @@ void PicoWrite8_io(u32 a, u32 d)
     Pico.m.sram_reg |= (u8)(d & 3);\r
     return;\r
   }\r
-  if (!(PicoOpt & POPT_DIS_32X)) {\r
+  if (PicoOpt & POPT_EN_32X) {\r
     PicoWrite8_32x(a, d);\r
     return;\r
   }\r
@@ -569,7 +569,7 @@ void PicoWrite16_io(u32 a, u32 d)
     Pico.m.sram_reg |= (u8)(d & 3);\r
     return;\r
   }\r
-  if (!(PicoOpt & POPT_DIS_32X)) {\r
+  if (PicoOpt & POPT_EN_32X) {\r
     PicoWrite16_32x(a, d);\r
     return;\r
   }\r