]> xenbits.xensource.com Git - qemu-xen-unstable.git/commitdiff
s390x/mmu: Use TARGET_PAGE_MASK in mmu_translate_pte()
authorDavid Hildenbrand <david@redhat.com>
Wed, 25 Sep 2019 11:56:33 +0000 (13:56 +0200)
committerDavid Hildenbrand <david@redhat.com>
Wed, 9 Oct 2019 10:33:47 +0000 (12:33 +0200)
While ASCE_ORIGIN is not wrong, it is certainly confusing. We want a
page frame address.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
target/s390x/mmu_helper.c

index 71dee0a5d9a08d3615cb19a4d3d4ce0d1fd8caba..aaf5b235132f38c7acf18367dec5fbe990118515 100644 (file)
@@ -129,7 +129,7 @@ static int mmu_translate_pte(CPUS390XState *env, target_ulong vaddr,
         *flags &= ~PAGE_WRITE;
     }
 
-    *raddr = pt_entry & ASCE_ORIGIN;
+    *raddr = pt_entry & TARGET_PAGE_MASK;
     return 0;
 }