diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-02 23:38:39 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-10-31 01:02:44 +0100 |
commit | 2fa45344a92444439c081cad2342ffc048c381ad (patch) | |
tree | 1e5c6a879afe898251e82fc004e64f02d71d0b6e /include | |
parent | f324e7667a3c1f1aed9a5169a63aaac628feef47 (diff) |
cpus: Pass CPUState to cpu_is_stopped()
CPUArchState is no longer needed there.
Also change the return type to bool.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/cpu.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/qemu/cpu.h b/include/qemu/cpu.h index 83378c54ae..4e62032463 100644 --- a/include/qemu/cpu.h +++ b/include/qemu/cpu.h @@ -94,5 +94,16 @@ void cpu_reset(CPUState *cpu); */ bool qemu_cpu_is_self(CPUState *cpu); +/** + * cpu_is_stopped: + * @cpu: The CPU to check. + * + * Checks whether the CPU is stopped. + * + * Returns: %true if run state is not running or if artificially stopped; + * %false otherwise. + */ +bool cpu_is_stopped(CPUState *cpu); + #endif |