diff options
Diffstat (limited to 'riscv/processor.cc')
-rw-r--r-- | riscv/processor.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/riscv/processor.cc b/riscv/processor.cc index 652a170..77a81b3 100644 --- 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) |