target/m68k: introduce gen_singlestep_exception() function
commit456a0e3b3c723d1d599d73920e98474ca9073386
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 19 May 2021 14:29:16 +0000 (19 15:29 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 26 May 2021 18:44:42 +0000 (26 20:44 +0200)
tree1e2882b45d82c97649ead4780433d1ce3fcf4ac5
parent4f2b21efb398e93293e0fcd97b203563ff53e228
target/m68k: introduce gen_singlestep_exception() function

Introduce a new gen_singlestep_exception() function to be called when generating
the EXCP_DEBUG exception in single-step mode rather than calling
gen_raise_exception(EXCP_DEBUG) directly. This allows for the single-step
exception behaviour for all callers to be managed in a single place.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210519142917.16693-4-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/translate.c