32x: don't log purge area access
authornotaz <notasas@gmail.com>
Thu, 12 Nov 2009 16:40:03 +0000 (16:40 +0000)
committernotaz <notasas@gmail.com>
Thu, 12 Nov 2009 16:40:03 +0000 (16:40 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@831 be3aeb3a-fb24-0410-a615-afba39da0efa

pico/32x/memory.c

index 4417a48..ea4051b 100644 (file)
@@ -1016,6 +1016,10 @@ static u32 sh2_read16_da(u32 a, int id)
   return ((u16 *)Pico32xMem->data_array[id])[(a & 0xfff) / 2];
 }
 
+static void sh2_write_ignore(u32 a, u32 d, int id)
+{
+}
+
 // write8
 static void sh2_write8_unmapped(u32 a, u32 d, int id)
 {
@@ -1451,6 +1455,12 @@ void PicoMemSetup32x(void)
     sh2_write16_map[i]      = sh2_write16_unmapped;
   }
 
+  // "purge area"
+  for (i = 0x08; i <= 0x0b; i++) {
+    sh2_write8_map[i]       =
+    sh2_write16_map[i]      = sh2_write_ignore;
+  }
+
   // CS0
   sh2_read8_map[0].addr   = sh2_read8_map[4].addr   = MAP_HANDLER(sh2_read8_cs0);
   sh2_read16_map[0].addr  = sh2_read16_map[4].addr  = MAP_HANDLER(sh2_read16_cs0);