summary refs log tree commit diff stats
path: root/target/hppa/op_helper.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-09-13 10:55:59 +0200
committerHelge Deller <deller@gmx.de>2023-09-15 17:34:38 +0200
commitfa824d99f9b5c6f5246b8ddc6d7b794d4413e5f4 (patch)
tree163649101272f8e5cbb8cdf5a778d7067d4372fa /target/hppa/op_helper.c
parent6d1ef68ccafc7989e73b499b617f97d96ea34ac1 (diff)
downloadfocaccia-qemu-fa824d99f9b5c6f5246b8ddc6d7b794d4413e5f4.tar.gz
focaccia-qemu-fa824d99f9b5c6f5246b8ddc6d7b794d4413e5f4.zip
target/hppa: Add BTLB support to hppa TLB functions
Change the TLB code to store the Block-TLBs at the beginning
of the TLB table. New 4k TLB entries which are added later
shall not overwrite any of the BTLB entries.

Make sure that when the TLB is cleared by the OS via the ptlbe
instruction, the Block-TLBs will not be dropped.

Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'target/hppa/op_helper.c')
-rw-r--r--target/hppa/op_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/hppa/op_helper.c b/target/hppa/op_helper.c
index f25a5a72aa..837e2b3117 100644
--- a/target/hppa/op_helper.c
+++ b/target/hppa/op_helper.c
@@ -179,7 +179,8 @@ target_ureg HELPER(probe)(CPUHPPAState *env, target_ulong addr,
         return 0;
     }
 
-    excp = hppa_get_physical_address(env, addr, level, 0, &phys, &prot);
+    excp = hppa_get_physical_address(env, addr, level, 0, &phys,
+                                     &prot, NULL);
     if (excp >= 0) {
         if (env->psw & PSW_Q) {
             /* ??? Needs tweaking for hppa64.  */