Browse Source

Fix typo in HTVAL CSR write emulation

We are saving new HTVAL value in wrong location for HTVAL CSR write
so let's fix this.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
pull/605/head
Anup Patel 6 years ago
committed by Anup Patel
parent
commit
d0d923ebde
  1. 2
      riscv/processor.cc

2
riscv/processor.cc

@ -1142,7 +1142,7 @@ void processor_t::set_csr(int which, reg_t val)
/* Ignore */
break;
case CSR_HTVAL:
state.htinst = val;
state.htval = val;
break;
case CSR_HIP: {
reg_t mask = MIP_VSSIP;

Loading…
Cancel
Save