diff options
author | Yunsup Lee <yunsup@cs.berkeley.edu> | 2013-11-05 21:01:34 -0800 |
---|---|---|
committer | Yunsup Lee <yunsup@cs.berkeley.edu> | 2013-11-05 21:01:34 -0800 |
commit | d0a84535eb6f1fcd0edd8928ace16dcdbe0c48be (patch) | |
tree | d4a1fd090ff86f43eab75b3eb6e1195ab52c59e0 /hwacha | |
parent | 692ba09ef40c0cec66304678808db01e23e7b2ec (diff) | |
download | spike-d0a84535eb6f1fcd0edd8928ace16dcdbe0c48be.zip spike-d0a84535eb6f1fcd0edd8928ace16dcdbe0c48be.tar.gz spike-d0a84535eb6f1fcd0edd8928ace16dcdbe0c48be.tar.bz2 |
correctly trap when SR_EA is disabled
Diffstat (limited to 'hwacha')
-rw-r--r-- | hwacha/hwacha.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hwacha/hwacha.cc b/hwacha/hwacha.cc index 398fa28..8caf91e 100644 --- a/hwacha/hwacha.cc +++ b/hwacha/hwacha.cc @@ -31,6 +31,7 @@ void hwacha_t::reset() static reg_t custom(processor_t* p, insn_t insn, reg_t pc) { + require_accelerator; hwacha_t* h = static_cast<hwacha_t*>(p->get_extension()); bool matched = false; reg_t npc = -1; |