summaryrefslogtreecommitdiff
path: root/src/arch/riscv/insts/bitfields.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/insts/bitfields.hh')
-rw-r--r--src/arch/riscv/insts/bitfields.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/riscv/insts/bitfields.hh b/src/arch/riscv/insts/bitfields.hh
index d6648227e..eac070e7f 100644
--- a/src/arch/riscv/insts/bitfields.hh
+++ b/src/arch/riscv/insts/bitfields.hh
@@ -5,6 +5,9 @@
#define CSRIMM bits(machInst, 19, 15)
#define FUNCT12 bits(machInst, 31, 20)
+#define IMM5 bits(machInst, 11, 7)
+#define IMM7 bits(machInst, 31, 25)
+#define IMMSIGN bits(machInst, 31)
#define OPCODE bits(machInst, 6, 0)
#endif // __ARCH_RISCV_BITFIELDS_HH__ \ No newline at end of file