target/m68k: introduce is_singlestepping() function
commitf334bb2562dafbdc4ce673e5811bc9880758b147
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 19 May 2021 14:29:14 +0000 (19 15:29 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 26 May 2021 18:42:52 +0000 (26 20:42 +0200)
treee57ae1cd5080007af370f6ab5f603b82654e75a2
parent0319ad22bd5789e1eaa8a2dd5773db2d2c372f20
target/m68k: introduce is_singlestepping() function

The m68k translator currently checks the DisasContextBase singlestep_enabled
boolean directly to determine whether to single-step execution. Soon
single-stepping may also be triggered by setting the appropriate bits in the
SR register so centralise the check into a single is_singlestepping()
function.

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