target/ppc: Introduce prot_for_access_type
commit182357dbb6989a175d2a653c9edcd5422c651922
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 18 May 2021 20:11:23 +0000 (18 15:11 -0500)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 19 May 2021 02:50:47 +0000 (19 12:50 +1000)
tree628d85d547a16218f4e3fab03db7fb3be9f8a949
parent861f10fd528263a507476b8c4dda93a9588dfa5c
target/ppc: Introduce prot_for_access_type

Use this in the three places we currently have a local array
indexed by rwx (which happens to have the same values).
The types will match up correctly with additional changes.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210518201146.794854-2-richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/internal.h
target/ppc/mmu-hash32.c
target/ppc/mmu-hash64.c
target/ppc/mmu-radix64.c