Skip to content

Commit

Permalink
smstateen: fix sstateen csr number
Browse files Browse the repository at this point in the history
Signed-off-by: Chih-Min Chao <[email protected]>
  • Loading branch information
chihminchao committed Aug 25, 2023
1 parent d1680b7 commit 99d7b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv/processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ void state_t::reset(processor_t* const proc, reg_t max_isa)
}

const reg_t sstateen_mask = i == 0 ? sstateen0_mask : 0;
csrmap[CSR_SSTATEEN0 + i] = sstateen[i] = std::make_shared<sstateen_csr_t>(proc, CSR_HSTATEEN0 + i, sstateen_mask, 0, i);
csrmap[CSR_SSTATEEN0 + i] = sstateen[i] = std::make_shared<sstateen_csr_t>(proc, CSR_SSTATEEN0 + i, sstateen_mask, 0, i);
}
}

Expand Down

0 comments on commit 99d7b81

Please sign in to comment.