summaryrefslogtreecommitdiff
path: root/backend/regfile.h
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-09-22 13:31:06 -0700
committerJulian Blake Kongslie2022-09-22 13:31:06 -0700
commitce8be82f047a15edd86f5844492ed63705e99914 (patch)
treeb97cfeabece8fc00f5193c434214040f847ebea7 /backend/regfile.h
parentAdd a blank line after the horizontal occurrences (diff)
downloadprocmodel-ce8be82f047a15edd86f5844492ed63705e99914.tar.xz
Add a trivial indirect jump predictor and matching test
Diffstat (limited to 'backend/regfile.h')
-rw-r--r--backend/regfile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/regfile.h b/backend/regfile.h
index 276504c..4cf328a 100644
--- a/backend/regfile.h
+++ b/backend/regfile.h
@@ -33,6 +33,7 @@ namespace backend {
33 auto i = writebackp.read(); 33 auto i = writebackp.read();
34 if (i.generation == generation_down) { 34 if (i.generation == generation_down) {
35 pte(i.transaction, "W", fmt::format("writeback gen={} pc={:x}", generation_down, pc)); 35 pte(i.transaction, "W", fmt::format("writeback gen={} pc={:x}", generation_down, pc));
36 assert(pc == i.init_pc);
36 auto old_pc = pc; 37 auto old_pc = pc;
37 pc = i.linear_next_pc; 38 pc = i.linear_next_pc;
38 switch (i.field[OPCODE]) { 39 switch (i.field[OPCODE]) {