projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8760590
)
add get on subvl
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 27 Jun 2019 06:36:56 +0000
(07:36 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 27 Jun 2019 06:36:56 +0000
(07:36 +0100)
riscv/processor.cc
patch
|
blob
|
history
diff --git
a/riscv/processor.cc
b/riscv/processor.cc
index c6d604a67d3cc703992adf39f08589b222d3debb..c93c2e52329c899c9bdbee7927cc877ebe9c7cfd 100644
(file)
--- a/
riscv/processor.cc
+++ b/
riscv/processor.cc
@@
-894,6
+894,8
@@
reg_t processor_t::get_csr(int which)
(state.sv().ssvoffs<<26) | (state.sv().dsvoffs<<28);
case CSR_USVMVL:
return state.sv().mvl;
+ case CSR_USVSUBVL:
+ return state.sv().subvl;
case CSR_SVREGTOP:
case CSR_SVREGBOT:
return 0;// XXX TODO: return correct entry