]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc/POWER9: Add cpu_has_work function for POWER9
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Wed, 1 Mar 2017 06:54:40 +0000 (17:54 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 3 Mar 2017 00:30:59 +0000 (11:30 +1100)
commit6f46dcb3e5b9352ad3479bd6f005576510ee45fb
tree271e83838cfd2d7e8229947365a6702d1b20ea63
parent4975c098c9f4f96d433e88ab1b63d0d7e2a48ce0
target/ppc/POWER9: Add cpu_has_work function for POWER9

The cpu has work function is used to mask interrupts used to determine
if there is work for the cpu based on the LPCR. Add a function to do this
for POWER9 and add it to the POWER9 cpu definition. This is similar to that
for POWER8 except using the LPCR bits as defined for POWER9.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate_init.c