From 4efafebef052693fef045ab918c2681396af3c9f Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 11 Jan 2023 16:56:18 -0800 Subject: tmp --- riscv/execute.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/execute.cc b/riscv/execute.cc index b093e72..76f0322 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -281,7 +281,7 @@ void processor_t::step(size_t n) for (auto ic_entry = _mmu->access_icache(pc); ; ) { auto fetch = ic_entry->data; pc = execute_insn_fast(this, pc, fetch); - ic_entry = ic_entry->next; + ic_entry = &_mmu->icache[_mmu->icache_index(pc)]; if (unlikely(ic_entry->tag != pc)) break; if (unlikely(instret + 1 == n)) -- cgit v1.1