diff options
author | Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> | 2014-12-05 12:11:13 +0300 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2014-12-14 16:48:38 -0600 |
commit | c4d4525c38cd93cc5d1a743976eb25ac571d435f (patch) | |
tree | e6c24b236447d4447bc64b1bd46f26f002764cc5 /hw/scsi/esp.c | |
parent | 18b41f95d20ac6dbf918c73e704d4ca1fbc1a62f (diff) | |
download | qemu-c4d4525c38cd93cc5d1a743976eb25ac571d435f.tar.gz qemu-c4d4525c38cd93cc5d1a743976eb25ac571d435f.tar.bz2 qemu-c4d4525c38cd93cc5d1a743976eb25ac571d435f.zip |
target-i386: fix icount processing for repz instructions
TCG generates optimized code for i386 repz instructions in single step mode.
It means that when ecx becomes 0, execution of the string instruction breaks
immediately without an additional iteration for ecx==0 (which will only check
ecx and set the flags). Omitting this iteration leads to different
instructions counting in singlestep mode and in normal execution.
This patch disables optimization of this last iteration for icount mode
which should be deterministic.
v2: inverted the condition and formatted the comment
Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'hw/scsi/esp.c')
0 files changed, 0 insertions, 0 deletions