Revisión | 672189cd586ea38a2c1d8ab91eb1f9dcff5ceb05 (tree) |
---|---|
Tiempo | 2018-07-24 01:21:14 |
Autor | Richard Henderson <richard.henderson@lina...> |
Commiter | Richard Henderson |
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: 770c2fc7bb7
Cc: qemu-stable@nongnu.org
Reported-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
@@ -3532,7 +3532,7 @@ static void tcg_target_init(TCGContext *s) | ||
3532 | 3532 | tcg_target_available_regs[TCG_TYPE_V256] = ALL_VECTOR_REGS; |
3533 | 3533 | } |
3534 | 3534 | |
3535 | - tcg_target_call_clobber_regs = 0; | |
3535 | + tcg_target_call_clobber_regs = ALL_VECTOR_REGS; | |
3536 | 3536 | tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_EAX); |
3537 | 3537 | tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_EDX); |
3538 | 3538 | tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_ECX); |