MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / tlb_init

Function tlb_init

tinyemu/riscv_cpu.c:587–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587static void tlb_init(RISCVCPUState *s)
588{
589 int i;
590
591 for(i = 0; i < TLB_SIZE; i++) {
592 s->tlb_read[i].vaddr = -1;
593 s->tlb_write[i].vaddr = -1;
594 s->tlb_code[i].vaddr = -1;
595 }
596}
597
598static void tlb_flush_all(RISCVCPUState *s)
599{

Callers 2

tlb_flush_allFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected