Skip to content

Commit c4b14ab

Browse files
committed
bar
1 parent 5fc106a commit c4b14ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

riscv/execute.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ void processor_t::step(size_t n)
306306
prev_ic_entry = ic_entry;
307307
auto fetch = ic_entry->data;
308308
pc = execute_insn_fast(this, pc, fetch);
309-
ic_entry = &_mmu->icache[_mmu->icache_index(pc)];
310-
//ic_entry = ic_entry->next;
309+
//ic_entry = &_mmu->icache[_mmu->icache_index(pc)];
310+
ic_entry = ic_entry->next;
311311
if (unlikely(ic_entry->tag != pc))
312312
break;
313313
if (unlikely(instret + 1 == n))

riscv/mmu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct insn_fetch_t
4242

4343
struct icache_entry_t {
4444
reg_t tag;
45-
//struct icache_entry_t* next;
45+
struct icache_entry_t* next;
4646
insn_fetch_t data;
4747
};
4848

@@ -323,7 +323,7 @@ class mmu_t
323323

324324
insn_fetch_t fetch = {proc->decode_insn(insn), insn};
325325
entry->tag = addr;
326-
//entry->next = &icache[icache_index(addr + length)];
326+
entry->next = &icache[icache_index(addr + length)];
327327
entry->data = fetch;
328328

329329
auto [check_tracer, _, paddr] = access_tlb(tlb_insn, addr, TLB_FLAGS, TLB_CHECK_TRACER);

0 commit comments

Comments
 (0)