projects
/
riscv-isa-sim.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[sim,pk] cleanups & initial virtual memory support
[riscv-isa-sim.git]
/
riscv
/
mmu.cc
1
#include
"mmu.h"
2
3
void
mmu_t
::
flush_tlb
()
4
{
5
memset
(
tlb_data
,
0
,
sizeof
(
tlb_data
));
// TLB entry itself has valid bit
6
flush_icache
();
7
}
8
9
void
mmu_t
::
flush_icache
()
10
{
11
memset
(
icache_tag
,
0
,
sizeof
(
icache_tag
));
// I$ tag contains valid bit
12
}