On 07/01/2026 14.07, Philippe Mathieu-Daudé wrote:
mmu_translate_asce() translates virtual address to physical one.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
  target/s390x/mmu_helper.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/s390x/mmu_helper.c b/target/s390x/mmu_helper.c
index 9ee1d778876..ccb53e99ebd 100644
--- a/target/s390x/mmu_helper.c
+++ b/target/s390x/mmu_helper.c
@@ -122,8 +122,8 @@ static inline bool read_table_entry(CPUS390XState *env, 
hwaddr gaddr,
      return ret == MEMTX_OK;
  }
-static int mmu_translate_asce(CPUS390XState *env, target_ulong vaddr,
-                              uint64_t asc, uint64_t asce, target_ulong *raddr,
+static int mmu_translate_asce(CPUS390XState *env, vaddr vaddr,
+                              uint64_t asc, uint64_t asce, hwaddr *raddr,
                                int *flags)

I'm ok with the change to vaddr, but with regards to raddr, I think you should rather change all of these in mmu_helper.c in one go. Otherwise this is a mix of hwaddr pointers and target_ulong pointers while the change is going on, and that is rather bad.

 Thomas


Reply via email to