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:
1ea07ef
)
Clear EVEC LSBs, which kindly prevents a segfault
author
Andrew Waterman
<waterman@eecs.berkeley.edu>
Fri, 7 Feb 2014 09:15:49 +0000
(
01:15
-0800)
committer
Andrew Waterman
<waterman@eecs.berkeley.edu>
Fri, 7 Feb 2014 09:15:49 +0000
(
01:15
-0800)
riscv/processor.cc
patch
|
blob
|
history
diff --git
a/riscv/processor.cc
b/riscv/processor.cc
index 05fee796324440de4d3fcb7b38b2d67d8bfc060a..ed19509496f6960411f0f1d1ee8ec330ea72db19 100644
(file)
--- a/
riscv/processor.cc
+++ b/
riscv/processor.cc
@@
-243,8
+243,8
@@
reg_t processor_t::set_pcr(int which, reg_t val)
case CSR_EPC:
state.epc = val;
break;
- case CSR_EVEC:
- state.evec = val;
+ case CSR_EVEC:
+ state.evec = val
& ~3
;
break;
case CSR_CYCLE:
case CSR_TIME: