aboutsummaryrefslogtreecommitdiff
path: root/riscv/mmu.h
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-09-01 13:05:44 -0700
committerTim Newsome <tim@sifive.com>2016-09-01 13:05:44 -0700
commite464ab8efb36fc089303f11ddf78e32a90530c43 (patch)
treecc1248c74b1a6da17bc1040074957794f230cc03 /riscv/mmu.h
parent84f5c416bffb66c8b47fd94b90afa888af7e819e (diff)
downloadspike-e464ab8efb36fc089303f11ddf78e32a90530c43.zip
spike-e464ab8efb36fc089303f11ddf78e32a90530c43.tar.gz
spike-e464ab8efb36fc089303f11ddf78e32a90530c43.tar.bz2
Theoretically support trigger timing.
Diffstat (limited to 'riscv/mmu.h')
-rw-r--r--riscv/mmu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/mmu.h b/riscv/mmu.h
index 614ffc4..3da2c92 100644
--- a/riscv/mmu.h
+++ b/riscv/mmu.h
@@ -222,6 +222,9 @@ private:
int match = proc->trigger_match(operation, address, data);
if (match == -1)
return NULL;
+ if (proc->state.mcontrol[match].timing == 0) {
+ throw trigger_matched_t(match, operation, address, data);
+ }
return new trigger_matched_t(match, operation, address, data);
}