From: Yunsup Lee Date: Wed, 16 Oct 2013 21:26:13 +0000 (-0700) Subject: fix missing null check when there's no extension X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=196370f186778e149c0002b73249750e530c8dc7;p=riscv-isa-sim.git fix missing null check when there's no extension --- 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)