tcg: Make CPUClass.debug_excp_handler optional
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Claudio Fontana <cfontana@suse.de> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20201212155530.23098-12-cfontana@suse.de> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
80c4750ba8
commit
710384d042
@ -482,8 +482,10 @@ static inline void cpu_handle_debug_exception(CPUState *cpu)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cc->debug_excp_handler) {
|
||||||
cc->debug_excp_handler(cpu);
|
cc->debug_excp_handler(cpu);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static inline bool cpu_handle_exception(CPUState *cpu, int *ret)
|
static inline bool cpu_handle_exception(CPUState *cpu, int *ret)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user