X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fnew_dynarec%2Femu_if.c;h=8e1545ed1603d0990a53db2632c9a0950a123984;hb=75dec299b045862ed759c21bb309270c48089dd0;hp=08d9f57ab6e0ba9e20fb1be9a2c7a2d1884a15c4;hpb=28bc5688589e5f2d6cfa86bb22441e763de468cd;p=pcsx_rearmed.git diff --git a/libpcsxcore/new_dynarec/emu_if.c b/libpcsxcore/new_dynarec/emu_if.c index 08d9f57a..8e1545ed 100644 --- a/libpcsxcore/new_dynarec/emu_if.c +++ b/libpcsxcore/new_dynarec/emu_if.c @@ -184,9 +184,9 @@ static void ari64_clear(u32 addr, u32 size) evprintf("ari64_clear %08x %04x\n", addr, size); /* check for RAM mirrors */ - if ((start & ~0xe0000000) < 0x200000) { - start &= ~0xe0000000; - start |= 0x80000000; + if ((addr & ~0xe0600000) < 0x200000) { + addr &= ~0xe0600000; + addr |= 0x80000000; } start = addr >> 12; @@ -438,7 +438,7 @@ end: printf("-- %d\n", bad); for (i = 0; i < 8; i++) printf("r%d=%08x r%2d=%08x r%2d=%08x r%2d=%08x\n", i, allregs_p[i], - i+8, allregs_p[i+8], i+16, allregs_p[i+16], i+24, allregs_p[i+23]); + i+8, allregs_p[i+8], i+16, allregs_p[i+16], i+24, allregs_p[i+24]); printf("PC: %08x/%08x, cycle %u\n", psxRegs.pc, ppc, psxRegs.cycle); dump_mem("/mnt/ntz/dev/pnd/tmp/psxram.dump", psxM, 0x200000); dump_mem("/mnt/ntz/dev/pnd/tmp/psxregs.dump", psxH, 0x10000);