Fix missing word-to-byte indexing conversion in getRegister
MODIFY
src/processors/RISC-V/rv_registerfile.h
src/processors/RISC-V/rv_registerfile.h
@@ -81,7 +81,7 @@ public:
OUTPUTPORT(r1_out, RV_REG_WIDTH);
OUTPUTPORT(r2_out, RV_REG_WIDTH);
- VSRTL_VT_U getRegister(unsigned i) { return m_memory->readMem<false>(i); }
+ VSRTL_VT_U getRegister(unsigned i) { return m_memory->readMem(i << 2); }
std::vector<VSRTL_VT_U> getRegisters() {
std::vector<VSRTL_VT_U> regs;

Fix missing word-to-byte indexing conversion in getRegister