diff options
author | Tim Newsome <tim@sifive.com> | 2022-05-19 17:11:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 17:11:07 -0700 |
commit | a0298a33e7b2091ba8d9f3a20838d96dc1164cac (patch) | |
tree | f6227ea4d52123b92c7236616317fbba149e2733 /riscv/trap.h | |
parent | 32eeb5a2b2ba6960f3379b23fa41b67ad0a4e38b (diff) | |
download | spike-a0298a33e7b2091ba8d9f3a20838d96dc1164cac.zip spike-a0298a33e7b2091ba8d9f3a20838d96dc1164cac.tar.gz spike-a0298a33e7b2091ba8d9f3a20838d96dc1164cac.tar.bz2 |
Move ebreak* logic from take_trap into instructions. (#1006)
Now that logic only affects ebreak instructions, and does not affect
triggers that also cause a trap to be taken.
Fixes #725. Although like Paul, I don't have a test for this case.
Introduce trap_debug_mode so so ebreak instructions can force entry into
debug mode.
Diffstat (limited to 'riscv/trap.h')
-rw-r--r-- | riscv/trap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/trap.h b/riscv/trap.h index 1cd62e1..8347c6e 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: |