summaryrefslogtreecommitdiffstats
path: root/include/exec/memory.h
diff options
context:
space:
mode:
authorDavid Gibson2016-07-05 04:31:48 +0200
committerDavid Gibson2016-07-05 06:31:08 +0200
commit073de86aa934d46d596a2367e7501da5500e5b86 (patch)
treefce91960c6e41a66eb0c5198124201b76fb409bb /include/exec/memory.h
parenttarget-ppc: Correct page size decoding in ppc_hash64_pteg_search() (diff)
downloadqemu-073de86aa934d46d596a2367e7501da5500e5b86.tar.gz
qemu-073de86aa934d46d596a2367e7501da5500e5b86.tar.xz
qemu-073de86aa934d46d596a2367e7501da5500e5b86.zip
target-ppc: Simplify HPTE matching
ppc_hash64_pteg_search() explicitly checks each HPTE's VALID and SECONDARY bits, then uses the HPTE64_V_COMPARE() macro to check the B field and AVPN. However, a small tweak to HPTE64_V_COMPARE() means we can check all of these bits at once with a suitable ptem value. So, consolidate all the comparisons for simplicity. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/exec/memory.h')
0 files changed, 0 insertions, 0 deletions