]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/m68k: Fix address argument for EXCP_TRACE
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 2 Jun 2022 01:33:52 +0000 (18:33 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 2 Jun 2022 07:35:02 +0000 (09:35 +0200)
commit8115fc9368e41f91a8bc27a78c2840beda989cb5
tree051ac788c8160447645a73a0c2b2e745effff68f
parent710d747b2deaf5f5678aebb1fabbe00224e5cdde
target/m68k: Fix address argument for EXCP_TRACE

According to the M68040 Users Manual, section 8.4.3,
Six word stack frame (format 2), Trace (and others) is
supposed to record the next insn in PC and the address
of the trapping instruction in ADDRESS.

Create gen_raise_exception_format2 to record the trapping
pc in env->mmu.ar.  Update m68k_interrupt_all to pass the
value to do_stack_frame.  Update cpu_loop to handle EXCP_TRACE.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220602013401.303699-9-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/m68k/cpu_loop.c
target/m68k/op_helper.c
target/m68k/translate.c