[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 16/27] linux-user: ensure nios2 processes queued work
From: |
Alex Bennée |
Subject: |
[PATCH v3 16/27] linux-user: ensure nios2 processes queued work |
Date: |
Mon, 26 Feb 2024 16:56:35 +0000 |
While async processes are rare for linux-user we do use them from time
to time. The most obvious one is tb_flush when we run out of
translation space. We will also need this when we move plugin
vcpu_init to an async task.
Fix nios2 to follow its older, wiser and more stable siblings.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
linux-user/nios2/cpu_loop.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/linux-user/nios2/cpu_loop.c b/linux-user/nios2/cpu_loop.c
index da77ede76bd..7fe08c87501 100644
--- a/linux-user/nios2/cpu_loop.c
+++ b/linux-user/nios2/cpu_loop.c
@@ -32,6 +32,7 @@ void cpu_loop(CPUNios2State *env)
cpu_exec_start(cs);
trapnr = cpu_exec(cs);
cpu_exec_end(cs);
+ process_queued_cpu_work(cs);
switch (trapnr) {
case EXCP_INTERRUPT:
--
2.39.2
- [PATCH v3 10/27] gdbstub: Infer number of core registers from XML, (continued)
- [PATCH v3 10/27] gdbstub: Infer number of core registers from XML, Alex Bennée, 2024/02/26
- [PATCH v3 08/27] gdbstub: Change gdb_get_reg_cb and gdb_set_reg_cb, Alex Bennée, 2024/02/26
- [PATCH v3 05/27] target/riscv: Use GDBFeature for dynamic XML, Alex Bennée, 2024/02/26
- [PATCH v3 11/27] hw/core/cpu: Remove gdb_get_dynamic_xml member, Alex Bennée, 2024/02/26
- [PATCH v3 07/27] gdbstub: Use GDBFeature for GDBRegisterState, Alex Bennée, 2024/02/26
- [PATCH v3 06/27] gdbstub: Use GDBFeature for gdb_register_coprocessor, Alex Bennée, 2024/02/26
- [PATCH v3 14/27] plugins: add qemu_plugin_num_vcpus function, Alex Bennée, 2024/02/26
- [PATCH v3 15/27] plugins: fix order of init/idle/resume callback, Alex Bennée, 2024/02/26
- [PATCH v3 13/27] plugins: remove previous n_vcpus functions from API, Alex Bennée, 2024/02/26
- [PATCH v3 26/27] docs/devel: document some plugin assumptions, Alex Bennée, 2024/02/26
- [PATCH v3 16/27] linux-user: ensure nios2 processes queued work,
Alex Bennée <=
- [PATCH v3 27/27] docs/devel: plugins can trigger a tb flush, Alex Bennée, 2024/02/26
- [PATCH v3 25/27] docs/devel: lift example and plugin API sections up, Alex Bennée, 2024/02/26
- [PATCH v3 23/27] contrib/plugins: fix imatch, Alex Bennée, 2024/02/26
- [PATCH v3 19/27] gdbstub: expose api to find registers, Alex Bennée, 2024/02/26
- [PATCH v3 18/27] plugins: Use different helpers when reading registers, Alex Bennée, 2024/02/26
- [PATCH v3 24/27] contrib/plugins: extend execlog to track register changes, Alex Bennée, 2024/02/26
- [PATCH v3 17/27] cpu: call plugin init hook asynchronously, Alex Bennée, 2024/02/26
- [PATCH v3 20/27] plugins: create CPUPluginState and migrate plugin_mask, Alex Bennée, 2024/02/26
- [PATCH v3 21/27] plugins: add an API to read registers, Alex Bennée, 2024/02/26