Re: [PATCH] target/m68k: implement rtr instruction

2021-03-07 Thread Laurent Vivier
Le 07/03/2021 à 19:07, Laurent Vivier a écrit : > This is needed to boot MacOS ROM. > > Pull the condition code and the program counter from the stack. > > Operation: > > (SP) -> CCR > SP + 2 -> SP > (SP) -> PC > (SP + 4) - > SP This is in fact: SP + 4 -> SP > > This oper

[PATCH] target/m68k: implement rtr instruction

2021-03-07 Thread Laurent Vivier
This is needed to boot MacOS ROM. Pull the condition code and the program counter from the stack. Operation: (SP) -> CCR SP + 2 -> SP (SP) -> PC (SP + 4) - > SP This operation is not privileged. Reported-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- target/m68k/tran