From: notaz Date: Thu, 12 Nov 2009 16:40:03 +0000 (+0000) Subject: 32x: don't log purge area access X-Git-Tag: v1.85~219 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b315c210a92a7ba0453933f22418584d4e6c2ab;p=picodrive.git 32x: don't log purge area access git-svn-id: file:///home/notaz/opt/svn/PicoDrive@831 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/pico/32x/memory.c b/pico/32x/memory.c index 4417a488..ea4051bc 100644 --- a/pico/32x/memory.c +++ b/pico/32x/memory.c @@ -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);