[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v9 13/32] tcg: Make CPUClass.debug_excp_handler optional
From: |
Claudio Fontana |
Subject: |
[RFC v9 13/32] tcg: Make CPUClass.debug_excp_handler optional |
Date: |
Tue, 8 Dec 2020 20:48:20 +0100 |
From: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Claudio Fontana <cfontana@suse.de>
---
accel/tcg/cpu-exec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c
index 890b88861a..64cba89356 100644
--- a/accel/tcg/cpu-exec.c
+++ b/accel/tcg/cpu-exec.c
@@ -482,7 +482,9 @@ static inline void cpu_handle_debug_exception(CPUState *cpu)
}
}
- cc->debug_excp_handler(cpu);
+ if (cc->debug_excp_handler) {
+ cc->debug_excp_handler(cpu);
+ }
}
static inline bool cpu_handle_exception(CPUState *cpu, int *ret)
--
2.26.2
- Re: [RFC v9 08/32] i386: move TCG accel files into tcg/, (continued)
- [RFC v9 09/32] i386: move cpu dump out of helper.c into cpu-dump.c, Claudio Fontana, 2020/12/08
- [RFC v9 11/32] tcg: cpu_exec_{enter,exit} helpers, Claudio Fontana, 2020/12/08
- [RFC v9 12/32] tcg: make CPUClass.cpu_exec_* optional, Claudio Fontana, 2020/12/08
- [RFC v9 10/32] i386: move TCG cpu class initialization out of helper.c, Claudio Fontana, 2020/12/08
- [RFC v9 13/32] tcg: Make CPUClass.debug_excp_handler optional,
Claudio Fontana <=
- [RFC v9 14/32] cpu: Remove unnecessary noop methods, Claudio Fontana, 2020/12/08
- [RFC v9 15/32] cpu: Introduce TCGCpuOperations struct, Claudio Fontana, 2020/12/08
- [RFC v9 16/32] target/riscv: remove CONFIG_TCG, as it is always TCG, Claudio Fontana, 2020/12/08
- [RFC v9 20/32] cpu: Move tlb_fill to tcg_ops, Claudio Fontana, 2020/12/08