aboutsummaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-02 23:38:39 +0200
committerAndreas Färber <afaerber@suse.de>2012-10-31 01:02:44 +0100
commit2fa45344a92444439c081cad2342ffc048c381ad (patch)
tree1e5c6a879afe898251e82fc004e64f02d71d0b6e /cpus.c
parentf324e7667a3c1f1aed9a5169a63aaac628feef47 (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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpus.c b/cpus.c
index 4654f0878b..0721a96831 100644
--- a/cpus.c
+++ b/cpus.c
@@ -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;
}