Skip to content

Commit

Permalink
s390x/mmu: Use TARGET_PAGE_MASK in mmu_translate_pte()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
davidhildenbrand committed Oct 9, 2019
1 parent 2ed0cd7 commit ae6d48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/s390x/mmu_helper.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit ae6d48d

Please sign in to comment.