[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] target/i386: cmpxchg only overwrites ZF
From: |
Richard Henderson |
Subject: |
Re: [PATCH 2/2] target/i386: cmpxchg only overwrites ZF |
Date: |
Mon, 12 Sep 2022 08:58:21 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
On 9/11/22 23:26, Paolo Bonzini wrote:
Do not set all the flags, they are untouched other than ZF.
Um, no, second sentence:
# The ZF flag is set if the values in the destination operand and register
# AL, AX, or EAX are equal; otherwise it is
cleared. The CF, PF, AF, SF,
# and OF flags are set according to the results of the comparison operation.
r~