mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
target-s390x: Update s390x_{tod,cpu}_timer() to use S390CPU
In place of CPUS390XState pass S390CPU as opaque from the new initfn. cpu_interrupt() is anticipated to take a CPUState in the future. Signed-off-by: Andreas Färber <afaerber@suse.de> Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
This commit is contained in:
parent
8f22e0df80
commit
b8ba6799f4
2 changed files with 6 additions and 4 deletions
|
@ -53,7 +53,8 @@
|
|||
#ifndef CONFIG_USER_ONLY
|
||||
void s390x_tod_timer(void *opaque)
|
||||
{
|
||||
CPUS390XState *env = opaque;
|
||||
S390CPU *cpu = opaque;
|
||||
CPUS390XState *env = &cpu->env;
|
||||
|
||||
env->pending_int |= INTERRUPT_TOD;
|
||||
cpu_interrupt(env, CPU_INTERRUPT_HARD);
|
||||
|
@ -61,7 +62,8 @@ void s390x_tod_timer(void *opaque)
|
|||
|
||||
void s390x_cpu_timer(void *opaque)
|
||||
{
|
||||
CPUS390XState *env = opaque;
|
||||
S390CPU *cpu = opaque;
|
||||
CPUS390XState *env = &cpu->env;
|
||||
|
||||
env->pending_int |= INTERRUPT_CPUTIMER;
|
||||
cpu_interrupt(env, CPU_INTERRUPT_HARD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue