diff options
-rw-r--r-- | hwacha/hwacha.cc | 2 | ||||
-rw-r--r-- | hwacha/hwacha.h | 5 | ||||
-rw-r--r-- | riscv/extension.h | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/hwacha/hwacha.cc b/hwacha/hwacha.cc index 61282d3..bd76f6b 100644 --- a/hwacha/hwacha.cc +++ b/hwacha/hwacha.cc @@ -17,7 +17,7 @@ void ut_state_t::reset() FPR.reset(); } -hwacha_t::hwacha_t() +void hwacha_t::reset() { ct_state.reset(); for (int i=0; i<max_uts; i++) diff --git a/hwacha/hwacha.h b/hwacha/hwacha.h index ee8de86..0f4955b 100644 --- a/hwacha/hwacha.h +++ b/hwacha/hwacha.h @@ -27,9 +27,10 @@ struct ut_state_t class hwacha_t : public extension_t { public: - hwacha_t(); - const char* name() { return "hwacha"; } std::vector<insn_desc_t> get_instructions(); + const char* name() { return "hwacha"; } + void reset(); + ct_state_t* get_ct_state() { return &ct_state; } ut_state_t* get_ut_state(int idx) { return &ut_state[idx]; } bool vf_active(); diff --git a/riscv/extension.h b/riscv/extension.h index 7e9bfe5..da42db9 100644 --- a/riscv/extension.h +++ b/riscv/extension.h @@ -12,10 +12,10 @@ class extension_t public: virtual std::vector<insn_desc_t> get_instructions() = 0; virtual const char* name() = 0; + virtual void reset() {}; virtual ~extension_t(); void set_processor(processor_t* _p) { p = _p; } - virtual void reset() {}; protected: processor_t* p; |