drc: optional address error exception support
[pcsx_rearmed.git] / libpcsxcore / new_dynarec / pcsxmem.c
index 8057b7e..190f8fc 100644 (file)
@@ -67,7 +67,7 @@ static u32 read_mem_dummy(u32 addr)
 
 static void write_mem_dummy(u32 data)
 {
-       if (!(psxRegs.CP0.n.Status & (1 << 16)))
+       if (!(psxRegs.CP0.n.SR & (1 << 16)))
                memprintf("unmapped w %08x, %08x @%08x %u\n",
                          address, data, psxRegs.pc, psxRegs.cycle);
 }
@@ -502,6 +502,6 @@ void new_dyna_pcsx_mem_reset(void)
 
 void new_dyna_pcsx_mem_shutdown(void)
 {
-       psxUnmap(mem_readtab, 0x200000 * 4, MAP_TAG_LUTS);
+       psxUnmap(mem_readtab, 0x200000 * sizeof(mem_readtab[0]), MAP_TAG_LUTS);
        mem_writetab = mem_readtab = NULL;
 }