]> git.ipfire.org Git - thirdparty/qemu.git/commit
softmmu: fix for "after access" watchpoints
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Thu, 28 Oct 2021 11:48:17 +0000 (14:48 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Oct 2021 03:55:07 +0000 (20:55 -0700)
commitefd629fb21e2ff6a8f62642d9ed7a23dfee4d320
tree7445fc0d37ccf4106772a90cba84d00b85857904
parent1ab0ba8ab525046f4727c6e1b146e779db8b0489
softmmu: fix for "after access" watchpoints

Watchpoints that should fire after the memory access
break an execution of the current block, try to
translate current instruction into the separate block,
which then causes debug interrupt.
But cpu_interrupt can't be called in such block when
icount is enabled, because interrupts muse be allowed
explicitly.
This patch sets CF_LAST_IO flag for retranslated block,
allowing interrupt request for the last instruction.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <163542169727.2127597.8141772572696627329.stgit@pasha-ThinkPad-X280>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
softmmu/physmem.c