target-s390x: Pass S390CPU to s390_cpu_restart()
Needed for qemu_cpu_kick(). Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
45fa769b32
commit
3edb8f92e8
@ -292,8 +292,10 @@ static int handle_diag(CPUS390XState *env, struct kvm_run *run, int ipb_code)
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int s390_cpu_restart(CPUS390XState *env)
|
static int s390_cpu_restart(S390CPU *cpu)
|
||||||
{
|
{
|
||||||
|
CPUS390XState *env = &cpu->env;
|
||||||
|
|
||||||
kvm_s390_interrupt(env, KVM_S390_RESTART, 0);
|
kvm_s390_interrupt(env, KVM_S390_RESTART, 0);
|
||||||
s390_add_running_cpu(env);
|
s390_add_running_cpu(env);
|
||||||
qemu_cpu_kick(env);
|
qemu_cpu_kick(env);
|
||||||
@ -362,7 +364,7 @@ static int handle_sigp(CPUS390XState *env, struct kvm_run *run, uint8_t ipa1)
|
|||||||
|
|
||||||
switch (order_code) {
|
switch (order_code) {
|
||||||
case SIGP_RESTART:
|
case SIGP_RESTART:
|
||||||
r = s390_cpu_restart(target_env);
|
r = s390_cpu_restart(target_cpu);
|
||||||
break;
|
break;
|
||||||
case SIGP_STORE_STATUS_ADDR:
|
case SIGP_STORE_STATUS_ADDR:
|
||||||
r = s390_store_status(target_env, parameter);
|
r = s390_store_status(target_env, parameter);
|
||||||
|
Loading…
Reference in New Issue
Block a user