mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
target-ppc: Fix htab_mask calculation
Correctly update the htab_mask using the return value of KVM_PPC_ALLOCATE_HTAB ioctl. Also we don't update sdr1 on GET_SREGS for HV. We check for external htab and if found true, we don't need to update sdr1 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> [ fixed pte group offset computation in ppc_hash64_htab_lookup() that caused TCG to fail, Greg Kurz <gkurz@linux.vnet.ibm.com> ] Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
3707cd62db
commit
f3c75d42ad
8 changed files with 40 additions and 14 deletions
|
@ -966,6 +966,7 @@ struct CPUPPCState {
|
|||
#endif
|
||||
/* segment registers */
|
||||
hwaddr htab_base;
|
||||
/* mask used to normalize hash value to PTEG index */
|
||||
hwaddr htab_mask;
|
||||
target_ulong sr[32];
|
||||
/* externally stored hash table */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue