diff options
| author | Julian Blake Kongslie | 2022-09-22 13:31:06 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-09-22 13:31:06 -0700 |
| commit | ce8be82f047a15edd86f5844492ed63705e99914 (patch) | |
| tree | b97cfeabece8fc00f5193c434214040f847ebea7 /backend/regfile.h | |
| parent | Add a blank line after the horizontal occurrences (diff) | |
| download | procmodel-ce8be82f047a15edd86f5844492ed63705e99914.tar.xz | |
Add a trivial indirect jump predictor and matching test
Diffstat (limited to '')
| -rw-r--r-- | backend/regfile.h | 1 |
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]) { |
