mirror of
https://gitlab.com/qemu-project/qemu.git
synced 2026-10-28 14:04:39 +08:00
accel: Change AccelOpsClass.update_guest_debug to void
The return value is never used, so drop it. Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
1 parent
57d98debdf
commit
39b975cf7c
4 files changed
+7
-14
No files matched your search
@@ -227,10 +227,9 @@ static void do_hvf_update_guest_debug(CPUState *cpu, run_on_cpu_data arg)
|
||||
hvf_arch_update_guest_debug(cpu);
|
||||
}
|
||||
|
||||
int hvf_update_guest_debug(CPUState *cpu)
|
||||
void hvf_update_guest_debug(CPUState *cpu)
|
||||
{
|
||||
run_on_cpu(cpu, do_hvf_update_guest_debug, RUN_ON_CPU_NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hvf_insert_gdbstub_breakpoint(CPUState *cpu, GdbBreakpointType type,
|
||||
@@ -264,10 +263,7 @@ static int hvf_insert_gdbstub_breakpoint(CPUState *cpu, GdbBreakpointType type,
|
||||
}
|
||||
|
||||
CPU_FOREACH(cpu) {
|
||||
err = hvf_update_guest_debug(cpu);
|
||||
if (err) {
|
||||
return err;
|
||||
}
|
||||
hvf_update_guest_debug(cpu);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -304,10 +300,7 @@ static int hvf_remove_gdbstub_breakpoint(CPUState *cpu, GdbBreakpointType type,
|
||||
}
|
||||
|
||||
CPU_FOREACH(cpu) {
|
||||
err = hvf_update_guest_debug(cpu);
|
||||
if (err) {
|
||||
return err;
|
||||
}
|
||||
hvf_update_guest_debug(cpu);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -86,9 +86,9 @@ static bool kvm_cpus_are_resettable(void)
|
||||
}
|
||||
|
||||
#ifdef TARGET_KVM_HAVE_GUEST_DEBUG
|
||||
static int kvm_update_guest_debug_ops(CPUState *cpu)
|
||||
static void kvm_update_guest_debug_ops(CPUState *cpu)
|
||||
{
|
||||
return kvm_update_guest_debug(cpu, 0);
|
||||
kvm_update_guest_debug(cpu, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ struct AccelOpsClass {
|
||||
int64_t (*get_elapsed_ticks)(void);
|
||||
|
||||
/* gdbstub hooks */
|
||||
int (*update_guest_debug)(CPUState *cpu);
|
||||
void (*update_guest_debug)(CPUState *cpu);
|
||||
int (*insert_gdbstub_breakpoint)(CPUState *cpu, GdbBreakpointType type,
|
||||
vaddr addr, vaddr len);
|
||||
int (*remove_gdbstub_breakpoint)(CPUState *cpu, GdbBreakpointType type,
|
||||
|
||||
@@ -105,7 +105,7 @@ void hvf_arch_remove_all_gdbstub_hw_breakpoints(void);
|
||||
* Update guest to enable or disable debugging. Per-arch specifics will be
|
||||
* handled by calling down to hvf_arch_update_guest_debug.
|
||||
*/
|
||||
int hvf_update_guest_debug(CPUState *cpu);
|
||||
void hvf_update_guest_debug(CPUState *cpu);
|
||||
|
||||
bool hvf_arch_cpu_realize(CPUState *cpu, Error **errp);
|
||||
uint32_t hvf_arch_get_default_ipa_bit_size(void);
|
||||
|
||||
Reference in new issue
Block a user