summary refs log tree commit diff stats
path: root/scripts/qapi.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-10-12 11:50:27 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-11-04 15:02:30 +0100
commit54c54f8b56047d3c2420e1ae06a6a8890c220ac4 (patch)
tree9656342440da30780cc4bbd2d7ec870e0b906c77 /scripts/qapi.py
parentaa5ccadcca3e6018ebd9d2e8b0a0604f7cb0cd59 (diff)
downloadfocaccia-qemu-54c54f8b56047d3c2420e1ae06a6a8890c220ac4.tar.gz
focaccia-qemu-54c54f8b56047d3c2420e1ae06a6a8890c220ac4.zip
target-i386: fix pcmpxstrx equal-ordered (strstr) mode
In this mode, referring an invalid element of the source forces the
result to false (table 4-7, last column) but referring an invalid
element of the destination forces the result to true, so the outer
loop should still be run even if some elements of the destination
will be invalid.  They will be avoided in the inner loop, which
correctly bounds "i" to validd, but they will still contribute to a
positive outcome of the search.

This fixes tst_strstr in glibc 2.17.

Reported-by: Florian Weimer <fweimer@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions