@@ -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] = {
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(-)