Re: [PATCH 3/5] target/arm: wrap semihosting and psci calls with tcg_enabled

2022-12-19 Thread Fabiano Rosas
Richard Henderson writes: > On 12/16/22 13:29, Fabiano Rosas wrote: >> -if (arm_is_psci_call(cpu, cs->exception_index)) { >> -arm_handle_psci_call(cpu); >> -qemu_log_mask(CPU_LOG_INT, "...handled as PSCI call\n"); >> -return; >> -} >> +if (tcg_enabled()) { >>

Re: [PATCH 3/5] target/arm: wrap semihosting and psci calls with tcg_enabled

2022-12-16 Thread Richard Henderson
On 12/16/22 13:29, Fabiano Rosas wrote: -if (arm_is_psci_call(cpu, cs->exception_index)) { -arm_handle_psci_call(cpu); -qemu_log_mask(CPU_LOG_INT, "...handled as PSCI call\n"); -return; -} +if (tcg_enabled()) { +if (arm_is_psci_call(cpu,

[PATCH 3/5] target/arm: wrap semihosting and psci calls with tcg_enabled

2022-12-16 Thread Fabiano Rosas
From: Claudio Fontana for "all" builds (tcg + kvm), we want to avoid doing the psci and semihosting checks if tcg is built-in, but not enabled. Signed-off-by: Claudio Fontana Signed-off-by: Fabiano Rosas --- Originally from: [RFC v14 39/80] target/arm: replace CONFIG_TCG with tcg_enabled