cpu-exec: Clean up 'interrupt_request' reloading in cpu_handle_interrupt()
PATCH v2 1/1 cpu-exec: Clean up 'interrupt_request' reloading in cpu_handle_interrupt()
From: Sergey Fedorov <[email protected]>
Suggested-by Richard Henderson <[email protected]>
Signed-off-by Sergey Fedorov <[email protected]>
Signed-off-by Sergey Fedorov <[email protected]>
---
This patch applies on top of commit:
40ae3669fb55 ("cpu-exec: Remove unused 'x86_cpu' and 'env' from cpu_exec()")
from:
git://github.com/rth7680/qemu.git tcg-nextChanges in v2:
* Reload only when target hook called
cpu-exec.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
cpu-exec.c +4 -3
@@ -488,10 +488,11 @@ static inline void cpu_handle_interrupt(CPUState *cpu,if (cc->cpu_exec_interrupt (cpu, interrupt_request)) { *last_tb =NULL ; } +/* The target hook may have updated the 'cpu->interrupt_request'; +* reload the 'interrupt_request' value */ + interrupt_request = cpu->interrupt_request; } -/* Don't use the cached interrupt_request value, -do_interrupt may have updated the EXITTB flag. */ -if (cpu->interrupt_request &CPU_INTERRUPT_EXITTB ) { +if (interrupt_request &CPU_INTERRUPT_EXITTB ) { cpu->interrupt_request &= ~CPU_INTERRUPT_EXITTB ;/* ensure that no TB jump will be modified as the program flow was changed */
Signature · 1 line
1.9.1
Quoted 7 lines · Sergey Fedorov
From: Sergey Fedorov <[email protected]>
Suggested-by Richard Henderson <[email protected]>Signed-off-by Sergey Fedorov <[email protected]>Signed-off-by Sergey Fedorov <[email protected]>---
Quoted 7 lines
This patch applies on top of commit:
40ae3669fb55 ("cpu-exec: Remove unused 'x86_cpu' and 'env' from cpu_exec()") from: git://github.com/rth7680/qemu.git tcg-nextChanges in v2:
* Reload only when target hook called
Reviewed-by Richard Henderson <[email protected]>
r~