aboutsummaryrefslogtreecommitdiff
path: root/riscv/trap.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2012-03-24 12:54:03 -0700
committerAndrew Waterman <waterman@eecs.berkeley.edu>2012-03-24 12:54:03 -0700
commit01db50f070d576e433d2b93ad061a0d8239e7b0c (patch)
treecf9d70747c76b92512ed2d2213ab2091ba9462db /riscv/trap.h
parentd8a587dedc38d6c1ec7e1f1348da5a4daf0b7f1e (diff)
downloadspike-01db50f070d576e433d2b93ad061a0d8239e7b0c.zip
spike-01db50f070d576e433d2b93ad061a0d8239e7b0c.tar.gz
spike-01db50f070d576e433d2b93ad061a0d8239e7b0c.tar.bz2
new supervisor mode
Diffstat (limited to 'riscv/trap.h')
-rw-r--r--riscv/trap.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/riscv/trap.h b/riscv/trap.h
index 8e43c2c..d09da3f 100644
--- a/riscv/trap.h
+++ b/riscv/trap.h
@@ -18,14 +18,6 @@
DECLARE_TRAP(vector_bank), \
DECLARE_TRAP(vector_illegal_instruction), \
DECLARE_TRAP(reserved1), \
- DECLARE_TRAP(irq0), \
- DECLARE_TRAP(irq1), \
- DECLARE_TRAP(irq2), \
- DECLARE_TRAP(irq3), \
- DECLARE_TRAP(irq4), \
- DECLARE_TRAP(irq5), \
- DECLARE_TRAP(irq6), \
- DECLARE_TRAP(irq7), \
#define DECLARE_TRAP(x) trap_##x
enum trap_t
@@ -35,6 +27,7 @@ enum trap_t
};
#undef DECLARE_TRAP
+struct interrupt_t { interrupt_t(int which) : i(which) {} int i; };
struct halt_t {}; // thrown to stop the processor from running
extern "C" const char* trap_name(trap_t t);