mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
cpu: Change cpu_exit() argument to CPUState
It no longer depends on CPUArchState, so move it to qom/cpu.c. Prepares for changing GDBState::c_cpu to CPUState. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
cb446ecab7
commit
60a3e17a46
13 changed files with 24 additions and 20 deletions
|
@ -421,8 +421,6 @@ DECLARE_TLS(CPUArchState *,cpu_single_env);
|
|||
| CPU_INTERRUPT_TGT_EXT_3 \
|
||||
| CPU_INTERRUPT_TGT_EXT_4)
|
||||
|
||||
void cpu_exit(CPUArchState *s);
|
||||
|
||||
/* Breakpoint/watchpoint flags */
|
||||
#define BP_MEM_READ 0x01
|
||||
#define BP_MEM_WRITE 0x02
|
||||
|
|
|
@ -370,6 +370,14 @@ void cpu_interrupt(CPUState *cpu, int mask);
|
|||
*/
|
||||
void cpu_reset_interrupt(CPUState *cpu, int mask);
|
||||
|
||||
/**
|
||||
* cpu_exit:
|
||||
* @cpu: The CPU to exit.
|
||||
*
|
||||
* Requests the CPU @cpu to exit execution.
|
||||
*/
|
||||
void cpu_exit(CPUState *cpu);
|
||||
|
||||
/**
|
||||
* cpu_resume:
|
||||
* @cpu: The CPU to resume.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue