mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-01 16:53:46 +00:00
tcg/i386: Mark xmm registers call-clobbered
When host vector registers and operations were introduced, I failed to mark the registers call clobbered as required by the ABI. Fixes:770c2fc7bb
Cc: qemu-stable@nongnu.org Reported-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> (cherry picked from commit672189cd58
) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
3afe55ff38
commit
e8488edcb3
|
@ -3529,7 +3529,7 @@ static void tcg_target_init(TCGContext *s)
|
|||
tcg_target_available_regs[TCG_TYPE_V256] = ALL_VECTOR_REGS;
|
||||
}
|
||||
|
||||
tcg_target_call_clobber_regs = 0;
|
||||
tcg_target_call_clobber_regs = ALL_VECTOR_REGS;
|
||||
tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_EAX);
|
||||
tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_EDX);
|
||||
tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_ECX);
|
||||
|
|
Loading…
Reference in a new issue