aboutsummaryrefslogtreecommitdiff
path: root/kvm-stub.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2017-02-24 17:35:50 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2017-03-01 11:23:39 +1100
commite78308fd3959c2694c8c366efdccacdd11997ac8 (patch)
treeb8af29ed61d05872ac7244b9bf6011f41b985f87 /kvm-stub.c
parent8d63351f9f99412fd2b99e2f5a8be2bc87d5670e (diff)
downloadqemu-e78308fd3959c2694c8c366efdccacdd11997ac8.zip
qemu-e78308fd3959c2694c8c366efdccacdd11997ac8.tar.gz
qemu-e78308fd3959c2694c8c366efdccacdd11997ac8.tar.bz2
target/ppc: Correct SDR1 masking
SDR_64_HTABORG, which indicates the bits of the SDR1 register to use for the base of a 64-bit machine's hashed page table (HPT) isn't correct. It includes the top 46 bits of the register, but in fact the top 4 bits must be zero (according to the ISA v2.07). No actual implementation has supported close to 2^60 bytes of physical address space, so it's kind of irrelevant, but we might as well correct this. In addition, although we checked for bad size values in SDR1, we never reported an error if entirely invalid bits were set there. Add this check to ppc_store_sdr1(). Reported-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'kvm-stub.c')
0 files changed, 0 insertions, 0 deletions