@ -35,6 +35,11 @@ class dummy_rocc_t : public rocc_t
return prev_acc; // in all cases, xd <- previous value of acc[rs2]
}
void reset()
{
for(int i = 0; i < num_acc; i++) acc[i] = 0;
private:
static const int num_acc = 4;
@ -15,6 +15,7 @@ class extension_t
virtual ~extension_t();
void set_processor(processor_t* _p) { p = _p; }
virtual void reset() {};
protected:
processor_t* p;
@ -65,7 +65,8 @@ void processor_t::reset(bool value)
return;
run = !value;
state.reset();
state.reset(); // reset the core
ext->reset(); // reset the extension
uint32_t processor_t::set_fsr(uint32_t val)