target/ppc: Refactor tcg radix mmu code
commit6a042827b638dc73da6a72c72596f5be80bd4581
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Mon, 3 Jul 2017 06:19:46 +0000 (3 16:19 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 11 Jul 2017 01:04:02 +0000 (11 11:04 +1000)
tree636436a11a8a03b2bd69111d9b779769ca319661
parent3340e5c4f28363348a0b3654624ff72ed14aa7cf
target/ppc: Refactor tcg radix mmu code

The mmu-radix64.c file implements functions to enable the radix mmu
emulation in tcg mode. There is a function ppc_radix64_walk_tree() which
performs the radix tree walk and also implicitly checks the pte
protection.

Move the protection checking of the pte from the ppc_radix64_walk_tree()
function into the caller. This means the ppc_radix64_walk_tree() function
can be used without protection checking which is useful for debugging.

ppc_radix64_walk_tree() no longer needs to take the rwx and prot variables.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/mmu-radix64.c