i386: fix breakpoints handling in icount mode
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Wed, 22 Oct 2014 11:38:31 +0000 (15:38 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 Oct 2014 15:41:05 +0000 (16:41 +0100)
commite64e353590c2584b41cd1db925f67042a05f4250
tree0eaa446b1f94f72bb497d43dfdbaa7c61da18eab
parent4725398f9309d05936fec2eaaa6e97e01e25545e
i386: fix breakpoints handling in icount mode

This patch fixes instructions counting when execution is stopped on
breakpoint (e.g. set from gdb). Without a patch extra instruction is translated
and icount is incremented by invalid value (which equals to number of
executed instructions + 1).

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
target-i386/translate.c