gem5  v20.1.0.0
bitfields.hh
Go to the documentation of this file.
1 #ifndef __ARCH_RISCV_BITFIELDS_HH__
2 #define __ARCH_RISCV_BITFIELDS_HH__
3 
4 #include "base/bitfield.hh"
5 
6 #define CSRIMM bits(machInst, 19, 15)
7 #define FUNCT12 bits(machInst, 31, 20)
8 #define IMM5 bits(machInst, 11, 7)
9 #define IMM7 bits(machInst, 31, 25)
10 #define IMMSIGN bits(machInst, 31)
11 #define OPCODE bits(machInst, 6, 0)
12 
13 #define AQ bits(machInst, 26)
14 #define RD bits(machInst, 11, 7)
15 #define RL bits(machInst, 25)
16 #define RS1 bits(machInst, 19, 15)
17 #define RS2 bits(machInst, 24, 20)
18 
19 #endif // __ARCH_RISCV_BITFIELDS_HH__
bitfield.hh

Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17