From 1057bae0a0d272567189421d22ed6e190c5e30a6 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Thu, 17 Oct 2013 19:44:53 -0700 Subject: [PATCH] catch trap_illegal_instruction in hwacha --- hwacha/hwacha.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hwacha/hwacha.cc b/hwacha/hwacha.cc index b1cf7fc..0d6b906 100644 --- a/hwacha/hwacha.cc +++ b/hwacha/hwacha.cc @@ -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()); -- 2.30.2