From ce8be82f047a15edd86f5844492ed63705e99914 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Thu, 22 Sep 2022 13:31:06 -0700 Subject: Add a trivial indirect jump predictor and matching test --- backend/regfile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'backend') 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 { auto i = writebackp.read(); if (i.generation == generation_down) { pte(i.transaction, "W", fmt::format("writeback gen={} pc={:x}", generation_down, pc)); + assert(pc == i.init_pc); auto old_pc = pc; pc = i.linear_next_pc; switch (i.field[OPCODE]) { -- cgit v1.2.3