mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
cpu: Move cpu_exec_* to tcg_ops
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> [claudio: wrapped target code in CONFIG_TCG] Signed-off-by: Claudio Fontana <cfontana@suse.de> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210204163931.7358-6-cfontana@suse.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
ec62595bab
commit
48c1a3e303
25 changed files with 54 additions and 42 deletions
|
@ -262,8 +262,8 @@ static void cpu_exec_enter(CPUState *cpu)
|
|||
{
|
||||
CPUClass *cc = CPU_GET_CLASS(cpu);
|
||||
|
||||
if (cc->cpu_exec_enter) {
|
||||
cc->cpu_exec_enter(cpu);
|
||||
if (cc->tcg_ops.cpu_exec_enter) {
|
||||
cc->tcg_ops.cpu_exec_enter(cpu);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -271,8 +271,8 @@ static void cpu_exec_exit(CPUState *cpu)
|
|||
{
|
||||
CPUClass *cc = CPU_GET_CLASS(cpu);
|
||||
|
||||
if (cc->cpu_exec_exit) {
|
||||
cc->cpu_exec_exit(cpu);
|
||||
if (cc->tcg_ops.cpu_exec_exit) {
|
||||
cc->tcg_ops.cpu_exec_exit(cpu);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -655,8 +655,8 @@ static inline bool cpu_handle_interrupt(CPUState *cpu,
|
|||
True when it is, and we should restart on a new TB,
|
||||
and via longjmp via cpu_loop_exit. */
|
||||
else {
|
||||
if (cc->cpu_exec_interrupt &&
|
||||
cc->cpu_exec_interrupt(cpu, interrupt_request)) {
|
||||
if (cc->tcg_ops.cpu_exec_interrupt &&
|
||||
cc->tcg_ops.cpu_exec_interrupt(cpu, interrupt_request)) {
|
||||
if (need_replay_interrupt(interrupt_request)) {
|
||||
replay_interrupt();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue