diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2014-02-10 09:16:33 +0400 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-02-24 04:47:01 +0400 |
commit | 6502668237a27985dd386c6e42b46e8977b4f2c0 (patch) | |
tree | 6b31437088726db293d8f971b2545d56beca7046 | |
parent | b807b5ff894b79e31ccd2ff5bd023577ecf45a6a (diff) | |
download | qemu-6502668237a27985dd386c6e42b46e8977b4f2c0.tar.gz qemu-6502668237a27985dd386c6e42b46e8977b4f2c0.tar.bz2 qemu-6502668237a27985dd386c6e42b46e8977b4f2c0.zip |
target-xtensa: add RRRI4 opcode format fields
This encoding is used by cache instructions.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
-rw-r--r-- | target-xtensa/translate.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 2d2df33115..355e75e0be 100644 --- a/target-xtensa/translate.c +++ b/target-xtensa/translate.c @@ -922,6 +922,15 @@ static void disas_xtensa_insn(CPUXtensaState *env, DisasContext *dc) #define RRRN_S RRR_S #define RRRN_T RRR_T +#define RRI4_R RRR_R +#define RRI4_S RRR_S +#define RRI4_T RRR_T +#ifdef TARGET_WORDS_BIGENDIAN +#define RRI4_IMM4 ((b2) & 0xf) +#else +#define RRI4_IMM4 (((b2) & 0xf0) >> 4) +#endif + #define RRI8_R RRR_R #define RRI8_S RRR_S #define RRI8_T RRR_T |