diff options
| author | David Gibson | 2016-07-05 04:31:48 +0200 |
|---|---|---|
| committer | David Gibson | 2016-07-05 06:31:08 +0200 |
| commit | 073de86aa934d46d596a2367e7501da5500e5b86 (patch) | |
| tree | fce91960c6e41a66eb0c5198124201b76fb409bb /include/exec/user | |
| parent | target-ppc: Correct page size decoding in ppc_hash64_pteg_search() (diff) | |
| download | qemu-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/user')
0 files changed, 0 insertions, 0 deletions
