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#endif // __ARCH_RISCV_BITFIELDS_HH__