aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYenHaoChen <howard25336284@gmail.com>2023-01-04 09:22:04 +0800
committerYenHaoChen <howard25336284@gmail.com>2023-01-04 09:22:04 +0800
commit1517591add456cd38b132c379237429ec63a6a4f (patch)
tree0785feda637550867364607a5bc3289a27a4de38
parent5fa820d323d1b53c7641fed52214b86f7272c58d (diff)
downloadspike-1517591add456cd38b132c379237429ec63a6a4f.zip
spike-1517591add456cd38b132c379237429ec63a6a4f.tar.gz
spike-1517591add456cd38b132c379237429ec63a6a4f.tar.bz2
triggers: refactor: move action variable to trap_common_t from itrigger_t/etrigger_t
-rw-r--r--riscv/triggers.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/riscv/triggers.h b/riscv/triggers.h
index 4a2b158..7dc2419 100644
--- a/riscv/triggers.h
+++ b/riscv/triggers.h
@@ -149,6 +149,7 @@ class trap_common_t : public trigger_t {
protected:
bool dmode;
bool hit;
+ action_t action;
};
class itrigger_t : public trap_common_t {
@@ -164,7 +165,6 @@ public:
private:
bool simple_match(bool interrupt, reg_t bit) const;
bool nmi;
- action_t action;
};
class etrigger_t : public trap_common_t {
@@ -179,7 +179,6 @@ public:
private:
bool simple_match(bool interrupt, reg_t bit) const;
- action_t action;
};
class mcontrol_common_t : public trigger_t {