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 /cpus.c | |
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 'cpus.c')
-rw-r--r-- | cpus.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -430,10 +430,8 @@ void cpu_synchronize_all_post_init(void) } } -int cpu_is_stopped(CPUArchState *env) +bool cpu_is_stopped(CPUState *cpu) { - CPUState *cpu = ENV_GET_CPU(env); - return !runstate_is_running() || cpu->stopped; } |