qemu-e2k/target-i386
Pavel Dovgalyuk c4d4525c38 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>
2014-12-14 16:48:38 -06:00
..
arch_dump.c
arch_memory_mapping.c
cc_helper_template.h
cc_helper.c
cpu-qom.h target-i386: Use cpu_exec_interrupt qom hook 2014-09-25 18:54:22 +01:00
cpu.c apic: avoid getting out of halted state on masked PIC interrupts 2014-11-24 14:37:30 +01:00
cpu.h target-i386: fix Coverity complaints about overflows 2014-11-13 16:13:27 +01:00
excp_helper.c
fpu_helper.c target-i386: fbld instruction doesn't set minus sign 2014-12-14 16:34:29 -06:00
gdbstub.c target-i386: update fp status fix 2014-09-18 17:06:12 +02:00
helper.c target-i386: Use cpu_exec_enter/exit qom hooks 2014-09-25 18:54:21 +01:00
helper.h
int_helper.c
ioport-user.c
kvm_i386.h
kvm-stub.c
kvm.c target-i386: add Intel AVX-512 support 2014-10-24 18:03:14 +02:00
machine.c target-i386: add Intel AVX-512 support 2014-10-24 18:03:14 +02:00
Makefile.objs
mem_helper.c
misc_helper.c
ops_sse_header.h
ops_sse.h target-i386: Use Common ShiftRows and InvShiftRows Tables 2014-06-16 13:24:33 +02:00
seg_helper.c target-i386: eliminate dead code and hoist common code out of "if" 2014-11-12 12:43:45 +01:00
shift_helper_template.h
smm_helper.c Merge remote-tracking branch 'remotes/kvm/uq/master' into staging 2014-06-05 19:16:28 +01:00
svm_helper.c Merge remote-tracking branch 'remotes/bonzini/softmmu-smap' into staging 2014-06-05 21:06:14 +01:00
svm.h
TODO
topology.h
translate.c target-i386: fix icount processing for repz instructions 2014-12-14 16:48:38 -06:00