diff options
author | Andreas Färber <afaerber@suse.de> | 2013-05-17 18:26:54 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-06-28 13:25:12 +0200 |
commit | 60a3e17a469e444a7bc4d9a14c2ecf3bdb5ec094 (patch) | |
tree | 1b543cad3d08d8f79df37b72554bd01dcce5ebe1 /qom | |
parent | cb446ecab714b2444a270be209e0533bcd2ee534 (diff) |
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>
Diffstat (limited to 'qom')
-rw-r--r-- | qom/cpu.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -91,6 +91,12 @@ void cpu_reset_interrupt(CPUState *cpu, int mask) cpu->interrupt_request &= ~mask; } +void cpu_exit(CPUState *cpu) +{ + cpu->exit_request = 1; + cpu->tcg_exit_req = 1; +} + int cpu_write_elf32_qemunote(WriteCoreDumpFunction f, CPUState *cpu, void *opaque) { |