target/m68k: Implement TPF in terms of TRAPcc
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 2 Jun 2022 01:33:55 +0000 (18:33 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 2 Jun 2022 07:35:02 +0000 (09:35 +0200)
commit815c6dea464c661032c6cc76f42160a6240c930e
treef45e732b35bcd072a526ac35321359432eb84ba8
parentaeeb90afcec3e18254bc6ac9c511f3b0a1a3796c
target/m68k: Implement TPF in terms of TRAPcc

TPF stands for "trap false", and is a long-form nop for ColdFire.
Re-use the immediate consumption code from trapcc; the insn will
already expand to a nop because of the TCG_COND_NEVER test
within do_trapcc.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220602013401.303699-12-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/translate.c