mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 19:14:58 -06:00
accel/tcg: Rename tcg_cpus_exec() -> tcg_cpu_exec()
tcg_cpus_exec() operates on a single vCPU, rename it as 'tcg_cpu_exec'. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Anton Johansson <anjo@rev.ng> Message-Id: <20240124101639.30056-4-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
cca2f62e74
commit
f4cf2ef93f
4 changed files with 4 additions and 4 deletions
|
@ -92,7 +92,7 @@ static void *mttcg_cpu_thread_fn(void *arg)
|
||||||
if (cpu_can_run(cpu)) {
|
if (cpu_can_run(cpu)) {
|
||||||
int r;
|
int r;
|
||||||
bql_unlock();
|
bql_unlock();
|
||||||
r = tcg_cpus_exec(cpu);
|
r = tcg_cpu_exec(cpu);
|
||||||
bql_lock();
|
bql_lock();
|
||||||
switch (r) {
|
switch (r) {
|
||||||
case EXCP_DEBUG:
|
case EXCP_DEBUG:
|
||||||
|
|
|
@ -258,7 +258,7 @@ static void *rr_cpu_thread_fn(void *arg)
|
||||||
if (icount_enabled()) {
|
if (icount_enabled()) {
|
||||||
icount_prepare_for_run(cpu, cpu_budget);
|
icount_prepare_for_run(cpu, cpu_budget);
|
||||||
}
|
}
|
||||||
r = tcg_cpus_exec(cpu);
|
r = tcg_cpu_exec(cpu);
|
||||||
if (icount_enabled()) {
|
if (icount_enabled()) {
|
||||||
icount_process_data(cpu);
|
icount_process_data(cpu);
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ void tcg_cpu_destroy(CPUState *cpu)
|
||||||
cpu_thread_signal_destroyed(cpu);
|
cpu_thread_signal_destroyed(cpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
int tcg_cpus_exec(CPUState *cpu)
|
int tcg_cpu_exec(CPUState *cpu)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
assert(tcg_enabled());
|
assert(tcg_enabled());
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#include "sysemu/cpus.h"
|
#include "sysemu/cpus.h"
|
||||||
|
|
||||||
void tcg_cpu_destroy(CPUState *cpu);
|
void tcg_cpu_destroy(CPUState *cpu);
|
||||||
int tcg_cpus_exec(CPUState *cpu);
|
int tcg_cpu_exec(CPUState *cpu);
|
||||||
void tcg_handle_interrupt(CPUState *cpu, int mask);
|
void tcg_handle_interrupt(CPUState *cpu, int mask);
|
||||||
void tcg_cpu_init_cflags(CPUState *cpu, bool parallel);
|
void tcg_cpu_init_cflags(CPUState *cpu, bool parallel);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue