Add debug module authentication.
[riscv-isa-sim.git] / riscv / trap.cc
index e1346e7c8d4fa1ea6c6966d5a9b03fca32e66e7b..4ac2f1f717423ca0ba133840b54abfcfb37c0a3e 100644 (file)
@@ -1,3 +1,5 @@
+// See LICENSE for license details.
+
 #include "trap.h"
 #include "processor.h"
 #include <cstdio>
@@ -8,8 +10,3 @@ const char* trap_t::name()
   sprintf(_name, fmt, uint8_t(which));
   return _name;
 }
-
-void mem_trap_t::side_effects(state_t* state)
-{
-  state->mbadaddr = badvaddr;
-}