target/m68k: implement rtr instruction
commit6abcec36741e589c855084e59195fc3454bf4be6
authorLaurent Vivier <laurent@vivier.eu>
Sun, 7 Mar 2021 21:25:52 +0000 (7 22:25 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 11 Mar 2021 20:12:32 +0000 (11 21:12 +0100)
tree75d3ab923566e61359e13bea032f1404aa94166c
parentf4abdf32714d1845b7c01ec136dd2b04c2f7db47
target/m68k: implement rtr instruction

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 <mark.cave-ayland@ilande.co.uk>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210307212552.523552-1-laurent@vivier.eu>
target/m68k/translate.c