Skip to content

Commit 2641352

Browse files
committed
Remove old Ziccid implementation
1 parent d4d7c46 commit 2641352

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

riscv/execute.cc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,6 @@ void processor_t::step(size_t n)
223223
}
224224
}
225225

226-
if (extension_enabled(EXT_ZICCID)) {
227-
// Ziccid requires stores eventually become visible to instruction fetch,
228-
// so periodically flush the I$
229-
if (ziccid_flush_count-- == 0) {
230-
ziccid_flush_count += ZICCID_FLUSH_PERIOD;
231-
_mmu->flush_icache();
232-
}
233-
}
234-
235226
while (n > 0) {
236227
size_t instret = 0;
237228
reg_t pc = state.pc;

riscv/processor.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,6 @@ class processor_t : public abstract_device_t
414414
static const size_t OPCODE_CACHE_SIZE = 4095;
415415
opcode_cache_entry_t opcode_cache[OPCODE_CACHE_SIZE];
416416

417-
unsigned ziccid_flush_count = 0;
418-
static const unsigned ZICCID_FLUSH_PERIOD = 10;
419-
420417
void take_pending_interrupt() { take_interrupt(state.mip->read() & state.mie->read()); }
421418
void take_interrupt(reg_t mask); // take first enabled interrupt in mask
422419
void take_trap(trap_t& t, reg_t epc); // take an exception

0 commit comments

Comments
 (0)