aboutsummaryrefslogtreecommitdiff
path: root/machine/emulation.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-07-16 16:16:22 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-07-16 16:16:22 -0700
commit023ae43e8d7b1cdd54ebdc98beeb6dae9dd6f05a (patch)
tree54d6ce5311ff94c2df38b339b11ca2fc98b319f1 /machine/emulation.h
parent6bead31951a5f70508b343681a6f6905324f7bec (diff)
downloadriscv-pk-023ae43e8d7b1cdd54ebdc98beeb6dae9dd6f05a.zip
riscv-pk-023ae43e8d7b1cdd54ebdc98beeb6dae9dd6f05a.tar.gz
riscv-pk-023ae43e8d7b1cdd54ebdc98beeb6dae9dd6f05a.tar.bz2
Add FCLASS emulation
Diffstat (limited to 'machine/emulation.h')
-rw-r--r--machine/emulation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/machine/emulation.h b/machine/emulation.h
index f1a71ec..b8712b5 100644
--- a/machine/emulation.h
+++ b/machine/emulation.h
@@ -11,8 +11,8 @@ typedef void (*emulation_func)(uintptr_t*, uintptr_t, uintptr_t, uintptr_t, insn
void misaligned_load_trap(uintptr_t* regs, uintptr_t mcause, uintptr_t mepc);
void misaligned_store_trap(uintptr_t* regs, uintptr_t mcause, uintptr_t mepc);
-void redirect_trap(uintptr_t epc, uintptr_t mstatus);
-DECLARE_EMULATION_FUNC(truly_illegal_insn);
+void redirect_trap(uintptr_t epc, uintptr_t mstatus) __attribute__((noreturn));
+DECLARE_EMULATION_FUNC(truly_illegal_insn) __attribute__((noreturn));
#define GET_REG(insn, pos, regs) ({ \
int mask = (1 << (5+LOG_REGBYTES)) - (1 << LOG_REGBYTES); \