aboutsummaryrefslogtreecommitdiff
path: root/riscv/trap.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/trap.h')
-rw-r--r--riscv/trap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/riscv/trap.h b/riscv/trap.h
index 1cd62e1..b5afce9 100644
--- a/riscv/trap.h
+++ b/riscv/trap.h
@@ -8,6 +8,11 @@
struct state_t;
+class trap_debug_mode
+{
+ /* Used to enter debug mode, which isn't quite a normal trap. */
+};
+
class trap_t
{
public:
@@ -28,6 +33,8 @@ class trap_t
return _name;
}
+ virtual ~trap_t() = default;
+
private:
char _name[16];
reg_t which;