drc: optional address error exception support
[pcsx_rearmed.git] / libpcsxcore / new_dynarec / linkage_arm.S
index f859817..a7f4d79 100644 (file)
@@ -261,6 +261,14 @@ FUNCTION(cc_interrupt):
        .size   cc_interrupt, .-cc_interrupt
 
        .align  2
+FUNCTION(jump_addrerror_ds): /* R3000E_AdEL / R3000E_AdES in r0 */
+       str     r1, [fp, #(LO_psxRegs + (34+8)*4)]  /* BadVaddr */
+       mov     r1, #1
+       b       call_psxException
+FUNCTION(jump_addrerror):
+       str     r1, [fp, #(LO_psxRegs + (34+8)*4)]  /* BadVaddr */
+       mov     r1, #0
+       b       call_psxException
 FUNCTION(jump_overflow_ds):
        mov     r0, #(12<<2)  /* R3000E_Ov */
        mov     r1, #1