From: Andrew Waterman Date: Mon, 29 Jul 2013 02:46:18 +0000 (-0700) Subject: Don't flush TLB on PTBR writes (only FATC) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d148b8aac3a3296fcc403e246c26928e311ef492;p=riscv-isa-sim.git Don't flush TLB on PTBR writes (only FATC) --- diff --git a/riscv/mmu.h b/riscv/mmu.h index a754b60..bb35f70 100644 --- a/riscv/mmu.h +++ b/riscv/mmu.h @@ -113,7 +113,7 @@ public: reg_t get_badvaddr() { return badvaddr; } reg_t get_ptbr() { return ptbr; } - void set_ptbr(reg_t addr) { ptbr = addr & ~(PGSIZE-1); flush_tlb(); } + void set_ptbr(reg_t addr) { ptbr = addr & ~(PGSIZE-1); } void set_processor(processor_t* p) { proc = p; flush_tlb(); } void flush_tlb();