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:
2f1f9a4
)
fix missing null check when there's no extension
author
Yunsup Lee
<yunsup@cs.berkeley.edu>
Wed, 16 Oct 2013 21:26:13 +0000
(14:26 -0700)
committer
Yunsup Lee
<yunsup@cs.berkeley.edu>
Wed, 16 Oct 2013 21:26:13 +0000
(14:26 -0700)
riscv/processor.cc
patch
|
blob
|
history
diff --git
a/riscv/processor.cc
b/riscv/processor.cc
index 652a17033aad9d78a2c748f87760ac841ba0f402..77a81b3cce66c625cc0f225e119d09159a095b2c 100644
(file)
--- a/
riscv/processor.cc
+++ b/
riscv/processor.cc
@@
-66,7
+66,8
@@
void processor_t::reset(bool value)
run = !value;
state.reset(); // reset the core
- ext->reset(); // reset the extension
+ if (ext)
+ ext->reset(); // reset the extension
}
uint32_t processor_t::set_fsr(uint32_t val)