aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2019-09-25 13:56:33 +0200
committerDavid Hildenbrand <david@redhat.com>2019-10-09 12:33:47 +0200
commitae6d48d43ff66d6d0f39db210af273a73348ea98 (patch)
tree08253f5e64e4a3111c1ea9a03e961c972dcd0cab /target
parent2ed0cd7cd7c55945cc9f16cdc3b102a14f22920a (diff)
downloadqemu-ae6d48d43ff66d6d0f39db210af273a73348ea98.zip
qemu-ae6d48d43ff66d6d0f39db210af273a73348ea98.tar.gz
qemu-ae6d48d43ff66d6d0f39db210af273a73348ea98.tar.bz2
s390x/mmu: Use TARGET_PAGE_MASK in mmu_translate_pte()
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>
Diffstat (limited to 'target')
-rw-r--r--target/s390x/mmu_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/mmu_helper.c b/target/s390x/mmu_helper.c
index 71dee0a..aaf5b23 100644
--- a/target/s390x/mmu_helper.c
+++ b/target/s390x/mmu_helper.c
@@ -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;
}