target/m68k: add chk and chk2
commit8bf6cbaf396a8b54b138bb8a7c3377f2868ed16e
authorLaurent Vivier <laurent@vivier.eu>
Thu, 4 Jan 2018 01:29:03 +0000 (4 02:29 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 4 Jan 2018 16:24:31 +0000 (4 17:24 +0100)
treea7481fbfb122a9821aff78d409753ad719876644
parentd2f8fb8e7f8e7d082103d705e178c9f72e0bea77
target/m68k: add chk and chk2

chk and chk2 compare a value to boundaries, and
trigger a CHK exception if the value is out of bounds.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20180104012913.30763-8-laurent@vivier.eu>
linux-user/main.c
target/m68k/cpu.c
target/m68k/cpu.h
target/m68k/helper.h
target/m68k/op_helper.c
target/m68k/translate.c