From 0cada7f60d7897e6afb2d63fd00cf2e7703967b8 Mon Sep 17 00:00:00 2001 From: Stephen Twigg Date: Sun, 22 Sep 2013 02:21:13 -0700 Subject: [PATCH] Adjust rocc_inst_t to properly extract fields due to the new ISA encoding. --- riscv/rocc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/riscv/rocc.h b/riscv/rocc.h index 6deccf8..13980bb 100644 --- a/riscv/rocc.h +++ b/riscv/rocc.h @@ -6,13 +6,13 @@ struct rocc_insn_t { unsigned opcode : 7; + unsigned rd : 5; unsigned xs2 : 1; unsigned xs1 : 1; unsigned xd : 1; - unsigned funct : 7; - unsigned rs2 : 5; unsigned rs1 : 5; - unsigned rd : 5; + unsigned rs2 : 5; + unsigned funct : 7; }; class rocc_t : public extension_t -- 2.30.2