projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
WIP on priv spec v1.9
[riscv-isa-sim.git]
/
riscv
/
htif.cc
diff --git
a/riscv/htif.cc
b/riscv/htif.cc
index ecaaf20d31c042d99fb11a820029d97b6de93ac0..14f6381ec74cc50049cc0a604dc7821f4625d8f1 100644
(file)
--- a/
riscv/htif.cc
+++ b/
riscv/htif.cc
@@
-94,7
+94,7
@@
void htif_isasim_t::tick_once()
case CSR_MFROMHOST:
old_val = proc->get_state()->fromhost;
if (write && old_val == 0)
- proc->
get_state()->fromhost = new_val
;
+ proc->
set_csr(CSR_MFROMHOST, new_val)
;
break;
case CSR_MRESET:
old_val = !proc->running();