arch-arm: Fix page size handling when merging stage 1 and 2
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 16 May 2018 14:27:32 +0000 (15:27 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 6 Jun 2018 13:55:50 +0000 (13:55 +0000)
commit7f82aa3d60a1ca0f0b35435d42f875ff1f1bfe0b
treed2b8a6f778b4cf1f7b722d2363af8eb828abb581
parent1fc48cc45471be63a6c7cb4eb2e3a2c13f8f9bf3
arch-arm: Fix page size handling when merging stage 1 and 2

The current code to merge translation entries from stage 1 and stage 2
doesn't handle cases where the page sizes at the different stages
differ. This change fixes both the case when the hypervisor has a
larger page size and when it has a smaller page size.

Change-Id: Icdf289005bf1e4de4d91d54643924a38d9d77796
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/10505
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
src/arch/arm/stage2_lookup.cc