From 018f9fea66b5ec11e4e7037d34f289e357b4873f Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 5 Feb 2011 01:31:47 +0200 Subject: [PATCH] drc: update memhandler according to pcsxr code --- libpcsxcore/new_dynarec/linkage_arm.s | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libpcsxcore/new_dynarec/linkage_arm.s b/libpcsxcore/new_dynarec/linkage_arm.s index 7b76aec3..8744608f 100644 --- a/libpcsxcore/new_dynarec/linkage_arm.s +++ b/libpcsxcore/new_dynarec/linkage_arm.s @@ -1000,13 +1000,23 @@ ari_read_io32: str\pf r1, [r2, r3] mov pc, lr 1: -.if \tab_shift == 1 @ write16 cmp r2, #0x1c00 blo 0b cmp r2, #0x1e00 +.if \tab_shift != 0 ldrlo pc, [fp, #spu_writef-dynarec_local] - nop +.else + @ write32 to SPU - very rare case (is this correct?) + bhs 0b + add r2, r0, #2 + mov r3, r1, lsr #16 + push {r2,r3,lr} + mov lr, pc + ldr pc, [fp, #spu_writef-dynarec_local] + pop {r0,r1,lr} + ldr pc, [fp, #spu_writef-dynarec_local] .endif + nop b 0b .endm -- 2.39.5