diff mbox series

[RFC,2/4] disas/riscv: Move down the struct rv_decode

Message ID 20220824130331.21315-3-zhiwei_liu@linux.alibaba.com (mailing list archive)
State New, archived
Headers show
Series Support multiple deocde path for RISC-V | expand

Commit Message

LIU Zhiwei Aug. 24, 2022, 1:03 p.m. UTC
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 mbox series

Patch

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] = {