From: kub Date: Tue, 14 Dec 2021 19:20:12 +0000 (+0100) Subject: z80, DrZ80: another fix for EABI stack alignment X-Git-Tag: v2.00~391 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8acecdc08440f32144eb2b52a008f7e063aed74;p=picodrive.git z80, DrZ80: another fix for EABI stack alignment --- diff --git a/cpu/DrZ80/drz80.S b/cpu/DrZ80/drz80.S index d7eaa0dc..e4e10479 100644 --- a/cpu/DrZ80/drz80.S +++ b/cpu/DrZ80/drz80.S @@ -1517,7 +1517,7 @@ DoInterrupt_end: ldr r0,[cpucontext, #z80irqcallback] tst r0,r0 streqb r0,[cpucontext,#z80irq] ;@ default handling - ldmeqfd sp!,{pc} + ldmeqfd sp!,{r2,pc} stmfd sp!,{r3,r12} mov lr,pc mov pc,r0 ;@ call callback function