diff options
author | Philippe Mathieu-Daudé | 2021-01-11 16:20:20 +0100 |
---|---|---|
committer | Laurent Vivier | 2021-03-09 23:13:57 +0100 |
commit | 538f049704e9b7a07eeaf326af772fdd30d89576 (patch) | |
tree | a526a5fe441343bfa49001357e65ae9028e9a7e4 /target/mips | |
parent | sysemu/runstate: Let runstate_is_running() return bool (diff) | |
download | qemu-538f049704e9b7a07eeaf326af772fdd30d89576.tar.gz qemu-538f049704e9b7a07eeaf326af772fdd30d89576.tar.xz qemu-538f049704e9b7a07eeaf326af772fdd30d89576.zip |
sysemu: Let VMChangeStateHandler take boolean 'running' argument
The 'running' argument from VMChangeStateHandler does not require
other value than 0 / 1. Make it a plain boolean.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20210111152020.1422021-3-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'target/mips')
-rw-r--r-- | target/mips/kvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/mips/kvm.c b/target/mips/kvm.c index 123ec1be7e..086debd9f0 100644 --- a/target/mips/kvm.c +++ b/target/mips/kvm.c @@ -38,7 +38,7 @@ const KVMCapabilityInfo kvm_arch_required_capabilities[] = { KVM_CAP_LAST_INFO }; -static void kvm_mips_update_state(void *opaque, int running, RunState state); +static void kvm_mips_update_state(void *opaque, bool running, RunState state); unsigned long kvm_arch_vcpu_id(CPUState *cs) { @@ -553,7 +553,7 @@ static int kvm_mips_restore_count(CPUState *cs) /* * Handle the VM clock being started or stopped */ -static void kvm_mips_update_state(void *opaque, int running, RunState state) +static void kvm_mips_update_state(void *opaque, bool running, RunState state) { CPUState *cs = opaque; int ret; |