[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/6] target-xtensa: add RRRI4 opcode format fields
From: |
Max Filippov |
Subject: |
[Qemu-devel] [PATCH 1/6] target-xtensa: add RRRI4 opcode format fields |
Date: |
Tue, 11 Feb 2014 12:43:30 +0400 |
This encoding is used by cache instructions.
Signed-off-by: Max Filippov <address@hidden>
---
target-xtensa/translate.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c
index dc5e78f..b0b7fa0 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
--
1.8.1.4
- [Qemu-devel] [PATCH 0/6] target-xtensa: add basic checks to cache opcodes, Max Filippov, 2014/02/11
- [Qemu-devel] [PATCH 1/6] target-xtensa: add RRRI4 opcode format fields,
Max Filippov <=
- [Qemu-devel] [PATCH 2/6] target-xtensa: add basic checks to dcache opcodes, Max Filippov, 2014/02/11
- [Qemu-devel] [PATCH 3/6] target-xtensa: add basic checks to icache opcodes, Max Filippov, 2014/02/11
- [Qemu-devel] [PATCH 4/6] target-xtensa: add overridable test_init macro, Max Filippov, 2014/02/11
- [Qemu-devel] [PATCH 5/6] target-xtensa: allow using core configuration in tests, Max Filippov, 2014/02/11
- [Qemu-devel] [PATCH 6/6] target-xtensa: add basic tests for cache opcodes, Max Filippov, 2014/02/11