[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 10/15] Use "hash" more consistently in ppc mmu c
From: |
Alexander Graf |
Subject: |
[Qemu-devel] Re: [PATCH 10/15] Use "hash" more consistently in ppc mmu code |
Date: |
Sat, 12 Feb 2011 16:47:24 +0100 |
On 12.02.2011, at 15:54, David Gibson wrote:
> Currently, get_segment() has a variable called hash. However it doesn't
> (quite) get the hash value for the ppc hashed page table. Instead it
> gets the hash shifted - effectively the offset of the hash bucket within
> the hash page table.
>
> As well, as being different to the normal use of plain "hash" in the
> architecture documentation, this usage necessitates some awkward 32/64
> dependent masks and shifts which clutter up the path in get_segment().
>
> This patch alters the code to use raw hash values through get_segment()
> including storing raw hashes instead of pte group offsets in the ctx
> structure. This cleans up the path noticeably.
>
> This does necessitate 32/64 dependent shifts when the hash values are
> taken out of the ctx structure and used, but those paths already have
> 32/64 bit variants so this is less awkward than it was in get_segment().
>
> Signed-off-by: David Gibson <address@hidden>
Still complex, but a lot more readable than before now :)
Acked-by: Alexander Graf <address@hidden>
Alex
- [Qemu-devel] Re: [PATCH 04/15] Add a hook to allow hypercalls to be emulated on PowerPC, (continued)
- [Qemu-devel] [PATCH 02/15] Clean up PowerPC SLB handling code, David Gibson, 2011/02/12
- [Qemu-devel] [PATCH 08/15] Clean up slb_lookup() function, David Gibson, 2011/02/12
- [Qemu-devel] [PATCH 06/15] Implement missing parts of the logic for the POWER PURR, David Gibson, 2011/02/12
- [Qemu-devel] [PATCH 07/15] Correct ppc popcntb logic, implement popcntw and popcntd, David Gibson, 2011/02/12
- [Qemu-devel] [PATCH 10/15] Use "hash" more consistently in ppc mmu code, David Gibson, 2011/02/12
- [Qemu-devel] Re: [PATCH 10/15] Use "hash" more consistently in ppc mmu code,
Alexander Graf <=
- [Qemu-devel] [PATCH 11/15] Better factor the ppc hash translation path, David Gibson, 2011/02/12
- [Qemu-devel] [PATCH 09/15] Parse SDR1 on mtspr instead of at translate time, David Gibson, 2011/02/12
[Qemu-devel] [PATCH 05/15] Implement PowerPC slbmfee and slbmfev instructions, David Gibson, 2011/02/12