target/m68k: Support semihosting on non-ColdFire targets
authorKeith Packard <keithp@keithp.com>
Tue, 3 Oct 2023 22:26:06 +0000 (15:26 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 24 Apr 2024 22:46:00 +0000 (15:46 -0700)
commit0815c228bd1e0c24ac064ce299807b32f8e05d83
treef8d2b128bbca89aa57324815680d576aab6c6db8
parentf161e723fdfddfc820c7f19eb6ac76ac6ba6d2a8
target/m68k: Support semihosting on non-ColdFire targets

According to the m68k semihosting spec:

"The instruction used to trigger a semihosting request depends on the
 m68k processor variant.  On ColdFire, "halt" is used; on other processors
 (which don't implement "halt"), "bkpt #0" may be used."

Add support for non-CodeFire processors by matching BKPT #0 instructions.

Signed-off-by: Keith Packard <keithp@keithp.com>
[rth: Use semihosting_test()]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/m68k/translate.c