Message ID | 20240515150837.259747-17-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp3034295wra; Wed, 15 May 2024 08:12:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV7JDSZmzJ7we2yv8j1qjtlU7IkLou16LYFAUWK9iwD29PGflqVLPoGWtu7E6WoraPtaKXWeREI5FtXqpPrHeHB X-Google-Smtp-Source: AGHT+IHmnHBO/TtJf9FQqQlF2Krntvr6SGy2l+jvJPeQFT5AXf/OiSe/myDWJRq/otZzKJMx1beG X-Received: by 2002:a05:6102:54ab:b0:47f:684:a3f with SMTP id ada2fe7eead31-48077e834b5mr17099694137.25.1715785972231; Wed, 15 May 2024 08:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715785972; cv=none; d=google.com; s=arc-20160816; b=YVoiUBi9fy+4etI7Xomi1uTUPLxJk+ARfQrxYjcDwgc32SSib0jOIxwiaGhznOP3bK onav1B7QwFNUmSzD4YSUWT78ZUtwnftHZh90sEVpAmlTJI7RGsidC1yWB9tTGamsU4yT sNDwIDKPsd1Fn4yhZRXsy+WADpz6dxSERpKCeM4h8cWnTeMiGtsJL/N+a+Tjz9L2wk1c cRF83iy64ZGnObcyUg1Tud1ipKc5lb/DNS25A1FYAzNF9Cye3TkhcqIowYUoLNB0NA7u YpxVIheCCM5DLQ6p9f2jfs8ZBXPQHux9HC3z+ykRhS7ixPt8fytQcE98YOv4eZPI/x8a 3xJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cH8p7zFQoa8qKM/2WS7ZfbaGhkQJFlfpHgdlJuwcM/w=; fh=X011yTyqhApvEaDulZV+xVgKKBTjUS9dtQWFbmf3LLM=; b=jW94CEjmwqxGH6uLMtqysSVzX6SRPeDxF3EFIRiz3Cba76aPoFBiiJv90pe3s5k37R 8qrlcj/ApuQn+rHA1CD8zvQMoyi04Sn9dDs8ZPdsrIDnKWA/8Ib2GWx++TthqOxTpvg2 gA6loJNeNIpEI5LT2Xy9QKA/0Vm3zkh5h2lvlBJ9jYwOowgtz8Wk3bGdTHN4kidQwsqD 95MFFr+zZrWDBwOwdVrCiQhb8Ac93pNMvcrSIqvnmzYtfYl+rLQOOLo1Ok1Gz3IHbjGA mUjnCyqs/LyBYVsHodaQUT+68KqIrfXbCafbkEA4WqMvo6P5Bj8LLf91Wjz+8BovfctS aeug==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xPdo6OAl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ada2fe7eead31-4806ccc3dacsi2181904137.795.2024.05.15.08.12.52 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 May 2024 08:12:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xPdo6OAl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1s7GFl-00042O-G9; Wed, 15 May 2024 11:09:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1s7GFh-00040c-LM for qemu-devel@nongnu.org; Wed, 15 May 2024 11:09:09 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1s7GFR-0002zv-ON for qemu-devel@nongnu.org; Wed, 15 May 2024 11:09:09 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-420160f8f52so23039865e9.0 for <qemu-devel@nongnu.org>; Wed, 15 May 2024 08:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715785732; x=1716390532; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cH8p7zFQoa8qKM/2WS7ZfbaGhkQJFlfpHgdlJuwcM/w=; b=xPdo6OAlo3KEO6xJFHjlu0nuhvZLkG121q6DtnSFmxRqLd1jPeuEx461Vb+y2Objuq Zgd/ZhwnbNMeOieiT9TQBjFY3/BA0Q36una3XMPOsMoYfbox6iLfwINjZWIF+4MnvKoh 9cqYZGq3SZW+zWz1s9rGgWogJcLInmN0YpIBYtWF8XpFUYMjucSQ5nj5NOdQTAqdhJKc eLl6bNbwfTJQfb+KFu/zeHT67Km/N4jYSyLZ/2WY97HAvpt0v4GGst7xITCWh9bqlzRt 7RI32VKEk7uZcKa/IQNNxYESpoln8c+ft0RX0G+ris2RigcsCEMzFqILbXSQLqOuvZAk BU2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715785732; x=1716390532; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cH8p7zFQoa8qKM/2WS7ZfbaGhkQJFlfpHgdlJuwcM/w=; b=FjaVZkAMJJ174IfCvuCh9dfeYbP1lgcp+pYmWDFCfR9WbCeMqMbp6gAYvPrVspk9hT Bk2XyUbaZistYlUUNYysd6coJKXpr/EKXrl/s8t905qRTxDomhozWtPkSh1P5AGJ3oKI HDxP8IBmxQEu2PVrmsSBL8B5b/kXCtqfArE/zfPG93EsEsjSMjyrtjhY6ch96nt2jQmT YHsDCJApY8zk8Jq9liX/44o9Oio9t7UiQMkbhnN0GZSy4MpGhvUqZMVCmoES5ofrFpm4 eMqyoO1HiLiHL5AeDEgIWENGzMxTDljcCfCITXP2cp7Q+EsEK8JfaAmsEL3/QWCPjaMy QVMA== X-Gm-Message-State: AOJu0YyBa/QYHpY/dFbpKJ2QHET5JXUfaBppSWHAARst9PUs6dbSV7hj +KgD7qOAT4wGaovcl4Lzqv/fO6MKHqzp1NQzX5uA5QwKpGuvQVIdgzEPj9fLCPsuqowXlJzgs8d 8Gv4= X-Received: by 2002:a05:600c:35c2:b0:41c:2313:da92 with SMTP id 5b1f17b1804b1-41fea93afeemr134412515e9.4.1715785732320; Wed, 15 May 2024 08:08:52 -0700 (PDT) Received: from stoup.. ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42013c5fa61sm132080825e9.40.2024.05.15.08.08.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 08:08:51 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, laurent@vivier.eu Subject: [PATCH v3 16/28] linux-user/i386: Remove xfeatures from target_fpstate_fxsave Date: Wed, 15 May 2024 17:08:25 +0200 Message-Id: <20240515150837.259747-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240515150837.259747-1-richard.henderson@linaro.org> References: <20240515150837.259747-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
linux-user/i386: Properly align signal frame
|
expand
|
diff --git a/linux-user/i386/signal.c b/linux-user/i386/signal.c index 89048ed069..f8064691c4 100644 --- a/linux-user/i386/signal.c +++ b/linux-user/i386/signal.c @@ -67,7 +67,6 @@ struct target_fpstate_fxsave { uint32_t xmm_space[64]; uint32_t hw_reserved[12]; struct target_fpx_sw_bytes sw_reserved; - uint8_t xfeatures[]; }; #define TARGET_FXSAVE_SIZE sizeof(struct target_fpstate_fxsave) QEMU_BUILD_BUG_ON(TARGET_FXSAVE_SIZE != 512); @@ -266,7 +265,7 @@ static void xsave_sigcontext(CPUX86State *env, struct target_fpstate_fxsave *fxs assert(!(fxsave_addr & 0x3f)); /* Zero the header, XSAVE *adds* features to an existing save state. */ - memset(fxsave->xfeatures, 0, 64); + memset(fxsave + 1, 0, sizeof(X86XSaveHeader)); cpu_x86_xsave(env, fxsave_addr, -1); __put_user(TARGET_FP_XSTATE_MAGIC1, &fxsave->sw_reserved.magic1); __put_user(extended_size, &fxsave->sw_reserved.extended_size);