qemu-e2k/target
Qi Hu 1215317510 target/i386: Fix calculation of LOCK NEG eflags
After:

        lock negl -0x14(%rbp)
        pushf
        pop    %rax

%rax will contain the wrong value because the "lock neg" calculates the
wrong eflags.  Simple test:

        #include <assert.h>

        int main()
        {
          __volatile__ unsigned test = 0x2363a;
          __volatile__ char cond = 0;
          asm(
              "lock negl %0 \n\t"
              "sets %1"
              : "=m"(test), "=r"(cond));
          assert(cond & 1);
          return 0;
        }

Reported-by: Jinyang Shen <shenjinyang@loongson.cn>
Co-Developed-by: Xuehai Chen <chenxuehai@loongson.cn>
Signed-off-by: Xuehai Chen <chenxuehai@loongson.cn>
Signed-off-by: Qi Hu <huqi@loongson.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-10-31 09:46:34 +01:00
..
alpha target/alpha: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
arm target/arm: Use the max page size in a 2-stage ptw 2022-10-27 11:34:31 +01:00
avr target/avr: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
cris target/cris: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
hexagon target/hexagon: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
hppa target/hppa: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
i386 target/i386: Fix calculation of LOCK NEG eflags 2022-10-31 09:46:34 +01:00
loongarch target/loongarch: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
m68k target/m68k: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
microblaze target/microblaze: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
mips target/mips: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
nios2 target/nios2: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
openrisc target/openrisc: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
ppc target/ppc: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
riscv Revert incorrect cflags initialization. 2022-10-26 10:53:41 -04:00
rx Revert incorrect cflags initialization. 2022-10-26 10:53:41 -04:00
s390x dump queue 2022-10-26 10:53:49 -04:00
sh4 target/sh4: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
sparc target/sparc: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
tricore target/tricore: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
xtensa target/xtensa: Convert to tcg_ops restore_state_to_opc 2022-10-26 11:11:28 +10:00
Kconfig
meson.build