From 60a3e17a469e444a7bc4d9a14c2ecf3bdb5ec094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Fri, 17 May 2013 18:26:54 +0200 Subject: cpu: Change cpu_exit() argument to CPUState MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- qom/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qom') diff --git a/qom/cpu.c b/qom/cpu.c index dba4a11edc..8a122b0ea9 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -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) { -- cgit v1.2.1