diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-07-05 12:31:48 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-07-05 14:31:08 +1000 |
commit | 073de86aa934d46d596a2367e7501da5500e5b86 (patch) | |
tree | fce91960c6e41a66eb0c5198124201b76fb409bb /qapi/string-output-visitor.c | |
parent | 651060aba79dc9d0cc77ac3921948ea78dba7409 (diff) |
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 'qapi/string-output-visitor.c')
0 files changed, 0 insertions, 0 deletions