Don't flush TLB on PTBR writes (only FATC)
authorAndrew Waterman <waterman@cs.berkeley.edu>
Mon, 29 Jul 2013 02:46:18 +0000 (19:46 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Mon, 29 Jul 2013 02:46:18 +0000 (19:46 -0700)
riscv/mmu.h

index a754b607c9a49890b189fb3b55ed93868aabf6fe..bb35f7004b901167f173be1a406f3954fa7636db 100644 (file)
@@ -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();