]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
linux-user: ensure nios2 processes queued work
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 27 Feb 2024 14:43:24 +0000 (14:43 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 28 Feb 2024 09:11:40 +0000 (09:11 +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>

linux-user/nios2/cpu_loop.c

index da77ede76bd4f20ef787c0c79d09ac8c9f0dc6e7..7fe08c87501ab0d0df4e81fd6c1c6e73909ad822 100644 (file)
@@ -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: