]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-openrisc/mmu.c
9pfs: handle walk of ".." in the root directory
[mirror_qemu.git] / target-openrisc / mmu.c
index 4222219acd894e98ead18893dba58ac9bbc77ca7..505dcdcdc8d13d8d2d2d3dba0ae01dddd2b0b6e3 100644 (file)
@@ -18,7 +18,9 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "cpu.h"
+#include "exec/exec-all.h"
 #include "qemu-common.h"
 #include "exec/gdbstub.h"
 #include "qemu/host-utils.h"
@@ -187,7 +189,7 @@ int openrisc_cpu_handle_mmu_fault(CPUState *cs,
                                      address, rw);
 
     if (ret == TLBRET_MATCH) {
-        tlb_set_page(&cpu->env, address & TARGET_PAGE_MASK,
+        tlb_set_page(cs, address & TARGET_PAGE_MASK,
                      physical & TARGET_PAGE_MASK, prot,
                      mmu_idx, TARGET_PAGE_SIZE);
         ret = 0;