diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-02-09 23:39:10 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-02-18 21:29:08 -0800 |
commit | d863fcf7f5b4f363e7ba2f95ce622f93dd4e866d (patch) | |
tree | d33f8e0e230d8a68a980be5e6d3ea06470e79547 /target/xtensa/cpu.h | |
parent | 759039737504c3f11098f7240c6048c6279e2215 (diff) | |
download | qemu-d863fcf7f5b4f363e7ba2f95ce622f93dd4e866d.zip qemu-d863fcf7f5b4f363e7ba2f95ce622f93dd4e866d.tar.gz qemu-d863fcf7f5b4f363e7ba2f95ce622f93dd4e866d.tar.bz2 |
target/xtensa: allow multiple names for single opcode
There are opcodes that differ only in encoding or possible range of
immediate arguments. Allow multiple names for single opcode translation
table entry to reduce code duplication in that case.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target/xtensa/cpu.h')
-rw-r--r-- | target/xtensa/cpu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h index 2765665..db8ee70 100644 --- a/target/xtensa/cpu.h +++ b/target/xtensa/cpu.h @@ -371,10 +371,12 @@ enum { XTENSA_OP_CHECK_INTERRUPTS = 0x200, XTENSA_OP_EXIT_TB_M1 = 0x400, XTENSA_OP_EXIT_TB_0 = 0x800, + + XTENSA_OP_NAME_ARRAY = 0x8000, }; typedef struct XtensaOpcodeOps { - const char *name; + const void *name; XtensaOpcodeOp translate; XtensaOpcodeBoolTest test_ill; XtensaOpcodeUintTest test_overflow; |