target/m68k: Raise the TRAPn exception with the correct pc
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 2 Jun 2022 01:33:45 +0000 (18:33 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 2 Jun 2022 07:35:02 +0000 (09:35 +0200)
commit79e1d527e13d35b976c947c48a70c23ef3586e76
treea7235442360471806fcce2f4fde86c3bfcd0a5d9
parentabc098351e533de5ca0ed9c90901f9f4dac348fc
target/m68k: Raise the TRAPn exception with the correct pc

Rather than adjust the PC in all of the consumers, raise
the exception with the correct PC in the first place.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220602013401.303699-2-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