[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 18/29] linux-user: ensure nios2 processes queued work
From: |
Alex Bennée |
Subject: |
[PULL 18/29] linux-user: ensure nios2 processes queued work |
Date: |
Wed, 28 Feb 2024 11:56:50 +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.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240227144335.1196131-19-alex.bennee@linaro.org>
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
- [PULL 29/29] docs/devel: plugins can trigger a tb flush, (continued)
- [PULL 29/29] docs/devel: plugins can trigger a tb flush, Alex Bennée, 2024/02/28
- [PULL 28/29] docs/devel: document some plugin assumptions, Alex Bennée, 2024/02/28
- [PULL 27/29] docs/devel: lift example and plugin API sections up, Alex Bennée, 2024/02/28
- [PULL 19/29] cpu: call plugin init hook asynchronously, Alex Bennée, 2024/02/28
- [PULL 20/29] plugins: Use different helpers when reading registers, Alex Bennée, 2024/02/28
- [PULL 17/29] plugins: fix order of init/idle/resume callback, Alex Bennée, 2024/02/28
- [PULL 23/29] plugins: add an API to read registers, Alex Bennée, 2024/02/28
- [PULL 21/29] gdbstub: expose api to find registers, Alex Bennée, 2024/02/28
- [PULL 22/29] plugins: create CPUPluginState and migrate plugin_mask, Alex Bennée, 2024/02/28
- [PULL 24/29] tests/tcg: expand insn test case to exercise register API, Alex Bennée, 2024/02/28
- [PULL 18/29] linux-user: ensure nios2 processes queued work,
Alex Bennée <=
- Re: [PULL 00/29] testing, gdbstub and plugin updates, Peter Maydell, 2024/02/28