catch trap_illegal_instruction in hwacha
authorYunsup Lee <yunsup@cs.berkeley.edu>
Fri, 18 Oct 2013 02:44:53 +0000 (19:44 -0700)
committerYunsup Lee <yunsup@cs.berkeley.edu>
Fri, 18 Oct 2013 02:44:53 +0000 (19:44 -0700)
hwacha/hwacha.cc

index b1cf7fc81ce159d67a85f633a335c43af8966939..0d6b906dd74708021889d721244acbda1df5533a 100644 (file)
@@ -50,6 +50,10 @@ static reg_t custom(processor_t* p, insn_t insn, reg_t pc)
   {
     h->take_exception(HWACHA_CAUSE_VF_FAULT_FETCH, h->get_ct_state()->vf_pc);
   }
+  catch (trap_illegal_instruction& t)
+  {
+    h->take_exception(HWACHA_CAUSE_VF_ILLEGAL_INSTRUCTION, h->get_ct_state()->vf_pc);
+  }
   catch (trap_load_address_misaligned& t)
   {
     h->take_exception(HWACHA_CAUSE_MISALIGNED_LOAD, t.get_badvaddr());