target/xtensa: make opcode properties more dynamic
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 4 May 2020 21:08:40 +0000 (14:08 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 21 Aug 2020 19:48:14 +0000 (12:48 -0700)
commit91dc2b2d12a0343f37a3ab425f2912ae0ce18187
treed40b76bda05b48065b844804cfe50b63d7c238b4
parentf86d9a093dada588889bde5582c7ec320487c4b8
target/xtensa: make opcode properties more dynamic

There's XtensaOpcodeOps::test_ill that is used to check whether opcode
generates illegal opcode exception or not. The illegal opcode exception
is not special and so this callback can be generalized to provide any
XTENSA_OP_* flags that are not completely static.
Introduce XtensaOpcodeOps::test_exceptions and convert all test_ill
users to test_exceptions.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
target/xtensa/cpu.h
target/xtensa/translate.c