aboutsummaryrefslogtreecommitdiff
path: root/riscv
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2022-10-13 13:51:06 -0700
committerAndrew Waterman <andrew@sifive.com>2022-10-13 13:51:06 -0700
commit37c8985013b1a15a8043f002e94f38e09cb55ef4 (patch)
treef44d2985240bd98e863610903d1036af40010204 /riscv
parente2e66015af4b5fce4bc958e70398f1fb7af7bcd9 (diff)
downloadspike-37c8985013b1a15a8043f002e94f38e09cb55ef4.zip
spike-37c8985013b1a15a8043f002e94f38e09cb55ef4.tar.gz
spike-37c8985013b1a15a8043f002e94f38e09cb55ef4.tar.bz2
Remove unused field matched_t::data
Diffstat (limited to 'riscv')
-rw-r--r--riscv/mmu.cc4
-rw-r--r--riscv/triggers.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/riscv/mmu.cc b/riscv/mmu.cc
index fdad05f..53c6fba 100644
--- a/riscv/mmu.cc
+++ b/riscv/mmu.cc
@@ -162,13 +162,13 @@ void mmu_t::check_triggers(triggers::operation_t operation, reg_t address, bool
return;
case triggers::MATCH_FIRE_BEFORE:
- throw triggers::matched_t(operation, address, data, action);
+ throw triggers::matched_t(operation, address, action);
case triggers::MATCH_FIRE_AFTER:
// We want to take this exception on the next instruction. We check
// whether to do so in the I$ refill path, so flush the I$.
flush_icache();
- matched_trigger = new triggers::matched_t(operation, address, data, action);
+ matched_trigger = new triggers::matched_t(operation, address, action);
return;
}
}
diff --git a/riscv/triggers.h b/riscv/triggers.h
index b7512ef..05ce75e 100644
--- a/riscv/triggers.h
+++ b/riscv/triggers.h
@@ -31,12 +31,11 @@ typedef enum {
class matched_t
{
public:
- matched_t(triggers::operation_t operation, reg_t address, reg_t data, action_t action) :
- operation(operation), address(address), data(data), action(action) {}
+ matched_t(triggers::operation_t operation, reg_t address, action_t action) :
+ operation(operation), address(address), action(action) {}
triggers::operation_t operation;
reg_t address;
- reg_t data;
action_t action;
};