OSDN Git Service

s390x/helper: Fixed real-to-absolute address translation
authorThomas Huth <thuth@linux.vnet.ibm.com>
Tue, 3 Sep 2013 11:31:36 +0000 (13:31 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 7 May 2014 08:17:35 +0000 (10:17 +0200)
commit422f32c5b12e392676017e637a0ebeaae194faab
tree6158197384f87dbbdb4efdf7ba81efa738b979ed
parent9898370497da3f18e0c9555b65c858eabc78ab50
s390x/helper: Fixed real-to-absolute address translation

The real-to-absolute address translation in mmu_translate() was
missing the second part for translating the page at the prefix
address back to the 0 page. And while we're at it, also moved the
code into a separate helper function since this might come in
handy for other parts of the code, too.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
target-s390x/helper.c