tests/tcg/m68k: Add trap.c
commite105db022715d0a418dbda843fe19eefeb272380
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 2 Jun 2022 01:33:58 +0000 (1 18:33 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 2 Jun 2022 07:35:03 +0000 (2 09:35 +0200)
tree55c0f8cc47eb52a6ef6088fb274985dcb4148199
parentcc1cc264b14c75c4f3ddd8e33c9dd6f1e497bfdf
tests/tcg/m68k: Add trap.c

Test various trap instructions: chk, div, trap, trapv, trapcc, ftrapcc,
and the signals and addresses that we expect from them.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220602013401.303699-15-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
tests/tcg/m68k/Makefile.target
tests/tcg/m68k/trap.c [new file with mode: 0644]