Adaptation for target-sparc/mmu_helper.c to
the 128 bit arithmetic.

Signed-off-by: Pierre Morel <pmo...@linux.vnet.ibm.com>
---
 target-sparc/mmu_helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-sparc/mmu_helper.c b/target-sparc/mmu_helper.c
index 2a0c6f0..2c1156e 100644
--- a/target-sparc/mmu_helper.c
+++ b/target-sparc/mmu_helper.c
@@ -859,7 +859,7 @@ hwaddr sparc_cpu_get_phys_page_debug(CPUState *cs, vaddr 
addr)
     }
     section = memory_region_find(get_system_memory(), phys_addr, 1);
     memory_region_unref(section.mr);
-    if (!int128_nz(section.size)) {
+    if (!uint128_nz(section.size)) {
         return -1;
     }
     return phys_addr;
-- 
1.7.1


Reply via email to