aboutsummaryrefslogtreecommitdiff
path: root/riscv/extension.cc
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-03-12 17:32:43 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-03-12 17:32:43 -0700
commitea58df801f36605b462783a61b5266bdd9a40eb0 (patch)
treeec6c4736f29e9f2021a9e448946e0a0169639cc1 /riscv/extension.cc
parent9af855a28e7dc4009ad31312840ca6f9396d572e (diff)
downloadspike-ea58df801f36605b462783a61b5266bdd9a40eb0.zip
spike-ea58df801f36605b462783a61b5266bdd9a40eb0.tar.gz
spike-ea58df801f36605b462783a61b5266bdd9a40eb0.tar.bz2
Update to new privileged spec
Sorry, everyone.
Diffstat (limited to 'riscv/extension.cc')
-rw-r--r--riscv/extension.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/riscv/extension.cc b/riscv/extension.cc
index b758eef..c2bea2e 100644
--- a/riscv/extension.cc
+++ b/riscv/extension.cc
@@ -12,11 +12,9 @@ void extension_t::illegal_instruction()
void extension_t::raise_interrupt()
{
- p->set_interrupt(IRQ_COP, true);
- p->take_interrupt();
+ p->raise_interrupt(IRQ_COP);
}
void extension_t::clear_interrupt()
{
- p->set_interrupt(IRQ_COP, false);
}