diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-11-01 09:56:42 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-11-06 18:49:34 -0800 |
commit | 34a0d9eefe7dd6161c100e6ffaf25c6c6f4a7282 (patch) | |
tree | 31ed08ea453bcd872a3d0b4bc783568f1e4ebf62 /target/hppa | |
parent | eb25d10f4d601f29169c876f9463e37db674b132 (diff) | |
download | qemu-34a0d9eefe7dd6161c100e6ffaf25c6c6f4a7282.zip qemu-34a0d9eefe7dd6161c100e6ffaf25c6c6f4a7282.tar.gz qemu-34a0d9eefe7dd6161c100e6ffaf25c6c6f4a7282.tar.bz2 |
target/hppa: Avoid async_safe_run_on_cpu on uniprocessor system
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hppa')
-rw-r--r-- | target/hppa/mem_helper.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c index 7132ea2..602e6c8 100644 --- a/target/hppa/mem_helper.c +++ b/target/hppa/mem_helper.c @@ -480,6 +480,7 @@ void HELPER(ptlb)(CPUHPPAState *env, target_ulong addr) { CPUState *src = env_cpu(env); CPUState *cpu; + bool wait = false; trace_hppa_tlb_ptlb(env); run_on_cpu_data data = RUN_ON_CPU_TARGET_PTR(addr); @@ -487,9 +488,14 @@ void HELPER(ptlb)(CPUHPPAState *env, target_ulong addr) CPU_FOREACH(cpu) { if (cpu != src) { async_run_on_cpu(cpu, ptlb_work, data); + wait = true; } } - async_safe_run_on_cpu(src, ptlb_work, data); + if (wait) { + async_safe_run_on_cpu(src, ptlb_work, data); + } else { + ptlb_work(src, data); + } } void hppa_ptlbe(CPUHPPAState *env) |