mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
cpu: Pass CPUState to cpu_interrupt()
Move it to qom/cpu.h to avoid issues with include order. Change pc_acpi_smi_interrupt() opaque to X86CPU. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
d8ed887bdc
commit
c3affe5670
37 changed files with 106 additions and 99 deletions
|
@ -1077,8 +1077,8 @@ void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end,
|
|||
tb_phys_invalidate(tb, -1);
|
||||
if (cpu != NULL) {
|
||||
cpu->current_tb = saved_tb;
|
||||
if (env && cpu->interrupt_request && cpu->current_tb) {
|
||||
cpu_interrupt(env, cpu->interrupt_request);
|
||||
if (cpu->interrupt_request && cpu->current_tb) {
|
||||
cpu_interrupt(cpu, cpu->interrupt_request);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1382,9 +1382,9 @@ void tb_check_watchpoint(CPUArchState *env)
|
|||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
/* mask must never be zero, except for A20 change call */
|
||||
static void tcg_handle_interrupt(CPUArchState *env, int mask)
|
||||
static void tcg_handle_interrupt(CPUState *cpu, int mask)
|
||||
{
|
||||
CPUState *cpu = ENV_GET_CPU(env);
|
||||
CPUArchState *env = cpu->env_ptr;
|
||||
int old_mask;
|
||||
|
||||
old_mask = cpu->interrupt_request;
|
||||
|
@ -1552,10 +1552,8 @@ void dump_exec_info(FILE *f, fprintf_function cpu_fprintf)
|
|||
|
||||
#else /* CONFIG_USER_ONLY */
|
||||
|
||||
void cpu_interrupt(CPUArchState *env, int mask)
|
||||
void cpu_interrupt(CPUState *cpu, int mask)
|
||||
{
|
||||
CPUState *cpu = ENV_GET_CPU(env);
|
||||
|
||||
cpu->interrupt_request |= mask;
|
||||
cpu->tcg_exit_req = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue