target/ppc: Check page dir/table base alignment
commitd2066bc50d690a6605307eaf0e72a9cf51e6fc25
authorLeandro Lupori <leandro.lupori@eldorado.org.br>
Tue, 28 Jun 2022 13:39:59 +0000 (28 10:39 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 18 Jul 2022 16:59:43 +0000 (18 13:59 -0300)
treeab23c55d87b7e6c9ccf17692b830ca2548a1fc1b
parent47e83d9107887c867bad8900ed39e83b79110b66
target/ppc: Check page dir/table base alignment

According to PowerISA 3.1B, Book III 6.7.6 programming note, the
page directory base addresses are expected to be aligned to their
size. Real hardware seems to rely on that and will access the
wrong address if they are misaligned. This results in a
translation failure even if the page tables seem to be properly
populated.

Signed-off-by: Leandro Lupori <leandro.lupori@eldorado.org.br>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220628133959.15131-4-leandro.lupori@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/mmu-radix64.c