diff options
author | Andreas Färber <afaerber@suse.de> | 2013-06-19 17:37:31 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-07-09 21:20:28 +0200 |
commit | 80b7cd735417b0883a026d79a513629a2817cdb4 (patch) | |
tree | 3b4b5dd55261d97ebdb8975a92420c65922cfbf7 /kvm-stub.c | |
parent | 6e42be7cd10260fd3a006d94f6c870692bf7a2c0 (diff) |
kvm: Free current_cpu identifier
Since CPU loops are done as last step in kvm_{insert,remove}_breakpoint()
and kvm_remove_all_breakpoints(), we do not need to distinguish between
invoking CPU and iterated CPUs and can thereby free the identifier for
use as a global variable.
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'kvm-stub.c')
-rw-r--r-- | kvm-stub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvm-stub.c b/kvm-stub.c index dec7a836df..583c636d68 100644 --- a/kvm-stub.c +++ b/kvm-stub.c @@ -83,19 +83,19 @@ int kvm_update_guest_debug(CPUArchState *env, unsigned long reinject_trap) return -ENOSYS; } -int kvm_insert_breakpoint(CPUArchState *current_env, target_ulong addr, +int kvm_insert_breakpoint(CPUArchState *env, target_ulong addr, target_ulong len, int type) { return -EINVAL; } -int kvm_remove_breakpoint(CPUArchState *current_env, target_ulong addr, +int kvm_remove_breakpoint(CPUArchState *env, target_ulong addr, target_ulong len, int type) { return -EINVAL; } -void kvm_remove_all_breakpoints(CPUArchState *current_env) +void kvm_remove_all_breakpoints(CPUArchState *env) { } |