diff options
author | YenHaoChen <howard25336284@gmail.com> | 2023-01-04 09:19:24 +0800 |
---|---|---|
committer | YenHaoChen <howard25336284@gmail.com> | 2023-01-04 09:19:24 +0800 |
commit | 1ffeac39c5b42424dc674de1ee4a3362a8aa50c4 (patch) | |
tree | c0b471672bccd16a9ad02971207ff2114fb59130 /riscv | |
parent | d9bc868d2ce6a940e75a0e7fbc3fe5b09a816c2c (diff) | |
download | spike-1ffeac39c5b42424dc674de1ee4a3362a8aa50c4.zip spike-1ffeac39c5b42424dc674de1ee4a3362a8aa50c4.tar.gz spike-1ffeac39c5b42424dc674de1ee4a3362a8aa50c4.tar.bz2 |
triggers: refactor: move dmode variable to trap_common_t from itrigger_t/etrigger_t
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/triggers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/triggers.h b/riscv/triggers.h index 4e4c156..9d1e943 100644 --- a/riscv/triggers.h +++ b/riscv/triggers.h @@ -146,6 +146,8 @@ private: }; class trap_common_t : public trigger_t { +protected: + bool dmode; }; class itrigger_t : public trap_common_t { @@ -160,7 +162,6 @@ public: private: bool simple_match(bool interrupt, reg_t bit) const; - bool dmode; bool hit; bool nmi; action_t action; @@ -178,7 +179,6 @@ public: private: bool simple_match(bool interrupt, reg_t bit) const; - bool dmode; bool hit; action_t action; }; |