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.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/riscv/insts/bitfields.hh b/src/arch/riscv/insts/bitfields.hh
new file mode 100644
index 000000000..45744e081
--- /dev/null
+++ b/src/arch/riscv/insts/bitfields.hh
@@ -0,0 +1,9 @@
+#ifndef __ARCH_RISCV_BITFIELDS_HH__
+#define __ARCH_RISCV_BITFIELDS_HH__
+
+#include "base/bitfield.hh"
+
+#define CSRIMM bits(machInst, 19, 15)
+#define FUNCT12 bits(machInst, 31, 20)
+
+#endif // __ARCH_RISCV_BITFIELDS_HH__ \ No newline at end of file