Message ID | 20230523235804.747803-4-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | a48b6afea4c6c7bbfa355eb732b9b97bf1d43d67 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1987294wrt; Tue, 23 May 2023 16:59:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68PsYe9PoVWqhiv3+KLr3V0suOfvKN1VxqID7qE6RcZfzhsvaN4jj5EA2tTKiE3XcRyx38 X-Received: by 2002:ac8:7f06:0:b0:3f6:c1af:aa74 with SMTP id f6-20020ac87f06000000b003f6c1afaa74mr2298271qtk.33.1684886369092; Tue, 23 May 2023 16:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684886369; cv=none; d=google.com; s=arc-20160816; b=ng39W0XNfkhQMVDihWolV5472LGtsxuNMmtFYr5GiD0+6Kmu10lrun52hWBJ6sC+KE smnUZd/ZxPVz76Q2vsdASlBLQkw4vHd4ebCgAcOIOMloICVw8y6x1e1TlJyfhxhgYMT+ JWpGkYgEUo804tLzFgfqUk0kNBsdDn9FKtT73cKIZjfXH+eKD8hBIJHZyurloY5MsiPO 1/pEIGawCwmkMMXL/dgKNZbdVS6XDLsHTlqiIr5wsE1jN4Z/i5+9B5jJNVOhRPaUTddL /hmrBlUIhmiUDfrCkFOrjZrj2igEJt0T/NF2h3EWGaZt4eVuzveGbrRp3xGTTV/WxnqQ TI9g== 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=iKNcUlS+jlCWq7+Fad+OkxpU1yvQUoyJQ2LbUV5SS1s=; b=bSVE138x5F2QfSXVvDLGK7Ugm7/5j47ftd19PPnHM5hgq3hvi4os652jos26fNeviY Y4gKVF1VdGT1h0KH+QZxF2hG08uNkPlSh6HCOG39CT7HhYPMwBgkSoJiqt83JrGrhfF+ bQrAtU9gHr6lfI/1iU9Pvm76dD6ebEgHAGnGi5W2Yy6hPK26VSWGVlo5eRG5QJcttuv6 6T0l9tnRxfEP9SSydQLiWmjWYL6gvoPtXqln6P1jHCVxv6UdHqpi0ZQr2Mr/Jdeah7MC GUs9ztbXpN6wpGdR+ZA5FurBvxhQIPhjBvBMJOS49DoMPg9gGj+O6E6fNGAcRYlAmAWd rzFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cquaSiaO; 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 p14-20020a05622a00ce00b003ef5a23a3a4si6148942qtw.418.2023.05.23.16.59.28 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 May 2023 16:59:29 -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=cquaSiaO; 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 1q1btP-0004A5-R5; Tue, 23 May 2023 19:58:15 -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 1q1btN-00049C-2D for qemu-devel@nongnu.org; Tue, 23 May 2023 19:58:13 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) 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 1q1btL-0001lx-6K for qemu-devel@nongnu.org; Tue, 23 May 2023 19:58:12 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-64d4e45971bso103255b3a.2 for <qemu-devel@nongnu.org>; Tue, 23 May 2023 16:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684886289; x=1687478289; 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=iKNcUlS+jlCWq7+Fad+OkxpU1yvQUoyJQ2LbUV5SS1s=; b=cquaSiaOcprG0bGUsTM2Clzcl210IPOulVn5QWVWpeGSw0rBR939mu/P/pVyOkjx65 S9q2bGIEIR4q8qEVK4ecWGBGhgqssj0IoFJUfBIYx1n/h7C9zLnIEudj5Ap5HdWRUtUv FuP1t9+ku/oYkLYO6P/oxIP7vt5W07miLNOitI6Uxpk013LM8nTY8cuGW24KXUTUt2YK +WiK5MuirP1yXHsIHesZdXno9df27Ts8QMCITro/4oq0c7KE7KDsL+T4P8IdoTq0T3gw BrdVYgQYNl23xflDElfDbeeuvun6WtfcEyzf4JqsXCuZmM4Rj1HgsLVCzwqieFjeP+Ug SA7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684886289; x=1687478289; 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=iKNcUlS+jlCWq7+Fad+OkxpU1yvQUoyJQ2LbUV5SS1s=; b=Rgo3zyR5VeImXyOFQ1ycD8CposYsg/tc6HXHg/0IHZLhYAWWWoIAsEo03FgN5U6eMN viTPpSzI/OwHw6baR9olPvyf5/n+UzQ9mSPx/zjBeER+L5SIirMEpnbX6YV0+KIu/ESp sRwiPHKs8y9ijdBIKgZ0H4c/QmYCfcr6RYRdDIEWpUAGhpmUliS1Ol7YV8mAymQ/bj5G WVWYhuIKKR5E+H6espGnSgFflyMlqLVw0NuDUBw9o9KW2D2X+cN5qUS8e+dN0k7b3Z8D TFgIpmeeI55XeahnFUqOMevezVwX3flqfmuHO2qX/tco2Dam16T0YBr6mCxnN2/OdJz/ HSMQ== X-Gm-Message-State: AC+VfDzqVXskb/nfhgHiLxNko/kXXCfyKR1C0UXOQ3wWWksflvl4PedQ pT0uIfpKEPygIowYtFHlGIIbxWM3GT1bEao+2jE= X-Received: by 2002:a05:6a20:9144:b0:10c:9773:5e6 with SMTP id x4-20020a056a20914400b0010c977305e6mr3346690pzc.47.1684886288781; Tue, 23 May 2023 16:58:08 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:c13a:d73:4f88:3654]) by smtp.gmail.com with ESMTPSA id p18-20020aa78612000000b0063b7c42a070sm6285041pfn.68.2023.05.23.16.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 16:58:08 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Peter Maydell <peter.maydell@linaro.org> Subject: [PULL 03/28] util: Add i386 CPUINFO_ATOMIC_VMOVDQU Date: Tue, 23 May 2023 16:57:39 -0700 Message-Id: <20230523235804.747803-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230523235804.747803-1-richard.henderson@linaro.org> References: <20230523235804.747803-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x435.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 |
[PULL,01/28] util: Introduce host-specific cpuinfo.h
|
expand
|
diff --git a/host/include/i386/host/cpuinfo.h b/host/include/i386/host/cpuinfo.h index e6f7461378..a6537123cf 100644 --- a/host/include/i386/host/cpuinfo.h +++ b/host/include/i386/host/cpuinfo.h @@ -25,6 +25,7 @@ #define CPUINFO_AVX512DQ (1u << 14) #define CPUINFO_AVX512VBMI2 (1u << 15) #define CPUINFO_ATOMIC_VMOVDQA (1u << 16) +#define CPUINFO_ATOMIC_VMOVDQU (1u << 17) /* Initialized with a constructor. */ extern unsigned cpuinfo; diff --git a/util/cpuinfo-i386.c b/util/cpuinfo-i386.c index 434319aa71..ab6143d9e7 100644 --- a/util/cpuinfo-i386.c +++ b/util/cpuinfo-i386.c @@ -77,8 +77,10 @@ unsigned __attribute__((constructor)) cpuinfo_init(void) * See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104688 */ __cpuid(0, a, b, c, d); - if (c == signature_INTEL_ecx || c == signature_AMD_ecx) { + if (c == signature_INTEL_ecx) { info |= CPUINFO_ATOMIC_VMOVDQA; + } else if (c == signature_AMD_ecx) { + info |= CPUINFO_ATOMIC_VMOVDQA | CPUINFO_ATOMIC_VMOVDQU; } } }