aboutsummaryrefslogtreecommitdiff
path: root/hw/nvram
diff options
context:
space:
mode:
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>2017-06-05 10:49:51 +1000
committerDavid Gibson <david@gibson.dropbear.id.au>2017-06-06 08:53:24 +1000
commit60694bc67837ac1678fa9d67e0f5f83f8cf5436e (patch)
treeca432445223c976abcc73a8e99e3bbc9eef0d025 /hw/nvram
parenta09f7443bcccd1703adf7c2954af695629c784a5 (diff)
downloadqemu-60694bc67837ac1678fa9d67e0f5f83f8cf5436e.zip
qemu-60694bc67837ac1678fa9d67e0f5f83f8cf5436e.tar.gz
qemu-60694bc67837ac1678fa9d67e0f5f83f8cf5436e.tar.bz2
target/ppc: Fixup set_spr error in h_register_process_table
set_spr is used in the function h_register_process_table() to update the LPCR_GTSE and LPCR_UPRT values based on the flags passed by the guest. The set_spr function takes the last two arguments mask and value used to mask and set the value of the spr respectively. The current call site passes these arguments in the wrong order and thus bot GTSE and UPRT will be set irrespective, which is obviously incorrect. Rearrange the function call so that these arguments are passed in the correct order and the correct behaviour is exhibited. It is worth noting that this wasn't detected earlier since these were always both set in all cases where this H_CALL was made. Fixes: 6de833070ca2 ("target/ppc: Set UPRT and GTSE on all cpus in H_REGISTER_PROCESS_TABLE") Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/nvram')
0 files changed, 0 insertions, 0 deletions