]> git.proxmox.com Git - qemu.git/commit
target-ppc: Update slb array with correct index values.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 1 Oct 2013 16:19:28 +0000 (21:49 +0530)
committerAlexander Graf <agraf@suse.de>
Fri, 25 Oct 2013 21:25:48 +0000 (23:25 +0200)
commit4b4d4a21b988f6d56e0792058aa0b968e19fda6b
tree5326f4f90ecc957895ac0c388333c5080190c95d
parent5cc7a967e9de8c7b16c15aee4cb9f5bfcf0c5989
target-ppc: Update slb array with correct index values.

Without this, a value of rb=0 and rs=0 results in replacing the 0th
index. This can be observed when using gdb remote debugging support.

(gdb) x/10i do_fork
   0xc000000000085330 <do_fork>:        Cannot access memory at address 0xc000000000085330
(gdb)

This is because when we do the slb sync via kvm_cpu_synchronize_state,
we overwrite the slb entry (0th entry) for 0xc000000000085330

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/kvm.c