On 10/28/21 4:48 AM, Pavel Dovgalyuk wrote:
Watchpoint processing code restores vCPU state twice:
in tb_check_watchpoint and in cpu_loop_exit_restore/cpu_restore_state.
Normally it does not affect anything, but in icount mode instruction
counter is incremented twice and becomes incorrect.
This patch eliminates unneeded CPU state restore.

Signed-off-by: Pavel Dovgalyuk<[email protected]>
Reviewed-by: David Hildenbrand<[email protected]>
---
  softmmu/physmem.c |    6 ++----
  1 file changed, 2 insertions(+), 4 deletions(-)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to