[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 2/4] disas/riscv: Move down the struct rv_decode
From: |
LIU Zhiwei |
Subject: |
[RFC PATCH 2/4] disas/riscv: Move down the struct rv_decode |
Date: |
Wed, 24 Aug 2022 21:03:29 +0800 |
We will later add a struct rv_opcode_date filed in struct rv_decode,
which is defined after struct rv_decode.
Signed-off-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
---
disas/riscv.c | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/disas/riscv.c b/disas/riscv.c
index 7af6afc8fa..5c36ae08dc 100644
--- a/disas/riscv.c
+++ b/disas/riscv.c
@@ -564,25 +564,6 @@ typedef enum {
/* structures */
-typedef struct {
- uint64_t pc;
- uint64_t inst;
- int32_t imm;
- uint16_t op;
- uint8_t codec;
- uint8_t rd;
- uint8_t rs1;
- uint8_t rs2;
- uint8_t rs3;
- uint8_t rm;
- uint8_t pred;
- uint8_t succ;
- uint8_t aq;
- uint8_t rl;
- uint8_t bs;
- uint8_t rnum;
-} rv_decode;
-
typedef struct {
const int op;
const rvc_constraint *constraints;
@@ -603,6 +584,25 @@ typedef struct {
const short decomp_data;
} rv_opcode_data;
+typedef struct {
+ uint64_t pc;
+ uint64_t inst;
+ int32_t imm;
+ uint16_t op;
+ uint8_t codec;
+ uint8_t rd;
+ uint8_t rs1;
+ uint8_t rs2;
+ uint8_t rs3;
+ uint8_t rm;
+ uint8_t pred;
+ uint8_t succ;
+ uint8_t aq;
+ uint8_t rl;
+ uint8_t bs;
+ uint8_t rnum;
+} rv_decode;
+
/* register names */
static const char rv_ireg_name_sym[32][5] = {
--
2.25.1