From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhPfX-0004vw-NS for qemu-devel@nongnu.org; Sun, 22 Jul 2018 21:29:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhPfW-0006vs-T2 for qemu-devel@nongnu.org; Sun, 22 Jul 2018 21:29:47 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:38757) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhPfW-0006vW-IK for qemu-devel@nongnu.org; Sun, 22 Jul 2018 21:29:46 -0400 Received: by mail-pg1-x544.google.com with SMTP id k3-v6so11014581pgq.5 for ; Sun, 22 Jul 2018 18:29:46 -0700 (PDT) From: Richard Henderson Date: Sun, 22 Jul 2018 18:29:41 -0700 Message-Id: <20180723012941.16920-1-richard.henderson@linaro.org> Subject: [Qemu-devel] [PATCH for-3.0] tcg/i386: Mark xmm registers call-clobbered List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jason@zx2c4.com, qemu-stable@nongnu.org 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 Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/i386/tcg-target.inc.c b/tcg/i386/tcg-target.inc.c index e87b0d445e..a91e4f1313 100644 --- a/tcg/i386/tcg-target.inc.c +++ b/tcg/i386/tcg-target.inc.c @@ -3532,7 +3532,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); -- 2.17.1