z80, DrZ80: another fix for EABI stack alignment
authorkub <derkub@gmail.com>
Tue, 14 Dec 2021 19:20:12 +0000 (20:20 +0100)
committerkub <derkub@gmail.com>
Tue, 14 Dec 2021 19:20:12 +0000 (20:20 +0100)
cpu/DrZ80/drz80.S

index d7eaa0d..e4e1047 100644 (file)
@@ -1517,7 +1517,7 @@ DoInterrupt_end:
        ldr r0,[cpucontext, #z80irqcallback]\r
        tst r0,r0\r
        streqb r0,[cpucontext,#z80irq]       ;@ default handling\r
-       ldmeqfd sp!,{pc}\r
+       ldmeqfd sp!,{r2,pc}\r
        stmfd sp!,{r3,r12}\r
        mov lr,pc\r
        mov pc,r0    ;@ call callback function\r