mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
spapr: Pass PowerPCCPU to hypercalls
Needed for changing cpu_has_work() argument type to CPUState, used in h_cede(). Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
aa100fa4c9
commit
b13ce26d3e
7 changed files with 42 additions and 35 deletions
|
@ -161,7 +161,7 @@ static int vio_make_devnode(VIOsPAPRDevice *dev,
|
|||
/*
|
||||
* CRQ handling
|
||||
*/
|
||||
static target_ulong h_reg_crq(CPUPPCState *env, sPAPREnvironment *spapr,
|
||||
static target_ulong h_reg_crq(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
||||
target_ulong opcode, target_ulong *args)
|
||||
{
|
||||
target_ulong reg = args[0];
|
||||
|
@ -219,7 +219,7 @@ static target_ulong free_crq(VIOsPAPRDevice *dev)
|
|||
return H_SUCCESS;
|
||||
}
|
||||
|
||||
static target_ulong h_free_crq(CPUPPCState *env, sPAPREnvironment *spapr,
|
||||
static target_ulong h_free_crq(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
||||
target_ulong opcode, target_ulong *args)
|
||||
{
|
||||
target_ulong reg = args[0];
|
||||
|
@ -233,7 +233,7 @@ static target_ulong h_free_crq(CPUPPCState *env, sPAPREnvironment *spapr,
|
|||
return free_crq(dev);
|
||||
}
|
||||
|
||||
static target_ulong h_send_crq(CPUPPCState *env, sPAPREnvironment *spapr,
|
||||
static target_ulong h_send_crq(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
||||
target_ulong opcode, target_ulong *args)
|
||||
{
|
||||
target_ulong reg = args[0];
|
||||
|
@ -256,7 +256,7 @@ static target_ulong h_send_crq(CPUPPCState *env, sPAPREnvironment *spapr,
|
|||
return H_HARDWARE;
|
||||
}
|
||||
|
||||
static target_ulong h_enable_crq(CPUPPCState *env, sPAPREnvironment *spapr,
|
||||
static target_ulong h_enable_crq(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
||||
target_ulong opcode, target_ulong *args)
|
||||
{
|
||||
target_ulong reg = args[0];
|
||||
|
@ -463,7 +463,7 @@ static int spapr_vio_busdev_init(DeviceState *qdev)
|
|||
return pc->init(dev);
|
||||
}
|
||||
|
||||
static target_ulong h_vio_signal(CPUPPCState *env, sPAPREnvironment *spapr,
|
||||
static target_ulong h_vio_signal(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
||||
target_ulong opcode,
|
||||
target_ulong *args)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue