Message ID | 20240703174226.2117169-3-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | 6527cee257e3c8e7add941a06118009c83ba9e75 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp807712wru; Wed, 3 Jul 2024 10:43:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUZrOsT8VsrEaoaEYVf/0zGL92Um7RCfmD2e/1MjtCipMJLxU5eYCL8vZ2WqUuSEbiyb0JjF6nOFPrPlQrubDza X-Google-Smtp-Source: AGHT+IHCEt43gu0UmS6JdfUtnNaCkTZmx9W6LIDydly4LA0J6UbVAezTyMP20DP2+QJKHlk8ZaXw X-Received: by 2002:a25:a1e6:0:b0:e03:6085:33ef with SMTP id 3f1490d57ef6-e036ec55f5dmr13253991276.41.1720028606396; Wed, 03 Jul 2024 10:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720028606; cv=none; d=google.com; s=arc-20160816; b=OAAi2zZr4w7jwnMVrrMjOgOjoNIzqdqe9nXySzLQC3baN0ITuJNK6OZn06oYsnX+ZO r2vAvTQTt1N7ayeYJCiARtyNNtvjQ0w5CkI4pyJCyZLBNjUGS/ah5LWmiYRsnVqtLgGC 8a/EdNN4p0yp+wHD2RPRSNGE1SkCHUQ/uR3kVplr6BSvbUpH7Oir/Wj+XHpTLWiSb3Bt g7L6LgkMX3JV7pUZiT3avFOh9UYj21vxysNF3fFrarTZm/k3jH7nDU+Qv4KrkOXgnYyu Uiv2eQALbfKbWsjOUvA0KjvgDAUJJickwiuop721j1mcpU1gBrCRf78Kdq0f0Y955BGH XTBQ== 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=ALTg/zUrt2COBtOO9DjvL7voDCkhzi+Pxaozp6yG5io=; fh=MoQL7SW1hNgADG9l4BUkyxqt3uxuhggF6Ub9Dq9ba3k=; b=06P+fR9upPJbJOjrxRArr6Ca1awL0HY4drUs0iPRL+8TJU4dRPfmoN72DOBXuy3gm2 Zt7kO4K0iD9anTZpjQ7UsBM+k/LUgVez1Rway9wIjYoU4Cge8YXTVKhPbaofxO7Yj2tY Zk8m8lULaqR88MTnkdwblfOyPuJRUuOevAj2PSc5KqeJSZu1d4RiDwG6X+2MXV4sY4QZ LWOidPwGKwR8RCnu8Y2Zs4hGOS7qoFeiO5WMYyWswUR/jFWLeG58iqPfvHr+gNjN7hdQ mc4rQ2aicBRwmSsAh+VMMNW4rvGHBA1fIL7y8xlVAw2lS2fVceRBRoyNCjSPscdde1Y8 TDyA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xmUappTT; 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 d75a77b69052e-446514e4131si129526551cf.719.2024.07.03.10.43.26 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jul 2024 10:43:26 -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=xmUappTT; 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 1sP406-0003ID-7x; Wed, 03 Jul 2024 13:42:38 -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 1sP404-0003HP-5K for qemu-devel@nongnu.org; Wed, 03 Jul 2024 13:42:36 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) 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 1sP400-0005LA-1c for qemu-devel@nongnu.org; Wed, 03 Jul 2024 13:42:33 -0400 Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-2c95ca60719so1562168a91.3 for <qemu-devel@nongnu.org>; Wed, 03 Jul 2024 10:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720028550; x=1720633350; 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=ALTg/zUrt2COBtOO9DjvL7voDCkhzi+Pxaozp6yG5io=; b=xmUappTTKZm8G+lh50X3tnBvBcxjvdydd+YDoNyAZk+HL1hLf4vdVongUkbOijGj0v PnaWefXdbgzbGG70wStJHuuFYFhL2eQyFqGXJ1HC7il28cyGFQd8rr+NCyEYzybELTb5 IbA9J/yGZD7A35sC19B5m09d56UK+0VTtIhpoSoLEV9dhHWxVJGCLlo/Y05s/RBQwuNl YBxkYxXHo7zWW2UsQ+kRuh2WJiAb+nyOJwB08Fv+M+Tf7Wvzzgv9GwGlrLbYkWyWve1J CCu0biYa3BGOc9vt754VuZxiDJBKtP2HlZHACaOj6qOzjYkhPmzZ2hsDfah5KMU1LBuO sfAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720028550; x=1720633350; 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=ALTg/zUrt2COBtOO9DjvL7voDCkhzi+Pxaozp6yG5io=; b=k6l1ZzwVMZJRMrF1V/ErpmaXW0OMBAYEf2aEo8ns/KSyYRRYzbf1L5oRlmWmcegDAI 21iY/bThWkMmANpfKD7KdfftGn1sjsCroVSyHzbdT96h2BEt9ApSu+sXG9o6Z9XHFDtx hprYZy8DxSe9MDjEtfDh3EVvta9KO56a8AbB/sqndqz/U0gbeNytEl9pTl6QkapIR0R2 olXxK4fqpivj1PxzCMipQQlKFp9DJTtM58yixWV/nN3FxbKC6+C7Jd4+CjoLIh4BkvEa lpTuocTgFjz6kTjVQpSollNKlPQnr262yOQhIv/MFphIq+XZbrceh9tF4Dfd2FzvwcR9 A62Q== X-Gm-Message-State: AOJu0YwyWs5L0pRcBQ1PJNkvDAlJwgTVFrSB6rTqUzlFBmUqeNcgEnFk IDdcGJs0lta4a+zLAfm87kfXMlw+fl0u0PYTvBlYp5sVnIWpULOV/NTJG51rKVj8yVlZikbziFT f X-Received: by 2002:a17:90b:202:b0:2c9:754d:2cb7 with SMTP id 98e67ed59e1d1-2c9754d2d0dmr1906021a91.33.1720028549707; Wed, 03 Jul 2024 10:42:29 -0700 (PDT) Received: from stoup.. (174-21-76-141.tukw.qwest.net. [174.21.76.141]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c91d3e7d7bsm11070030a91.47.2024.07.03.10.42.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 10:42:29 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: Brad Smith <brad@comstyle.com> Subject: [PULL 2/7] util/cpuinfo-ppc: Add FreeBSD support Date: Wed, 3 Jul 2024 10:42:21 -0700 Message-Id: <20240703174226.2117169-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240703174226.2117169-1-richard.henderson@linaro.org> References: <20240703174226.2117169-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.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 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,1/7] util/cpuinfo-ppc: Fix building on OpenBSD
|
expand
|
diff --git a/util/cpuinfo-ppc.c b/util/cpuinfo-ppc.c index 47af55aa0c..1304f9aa80 100644 --- a/util/cpuinfo-ppc.c +++ b/util/cpuinfo-ppc.c @@ -14,6 +14,13 @@ # include "elf.h" # endif #endif +#ifdef __FreeBSD__ +# include <machine/cpu.h> +# ifndef PPC_FEATURE2_ARCH_3_1 +# define PPC_FEATURE2_ARCH_3_1 0 +# endif +# define PPC_FEATURE2_VEC_CRYPTO PPC_FEATURE2_HAS_VEC_CRYPTO +#endif unsigned cpuinfo; @@ -28,7 +35,7 @@ unsigned __attribute__((constructor)) cpuinfo_init(void) info = CPUINFO_ALWAYS; -#ifdef CONFIG_LINUX +#if defined(CONFIG_LINUX) || defined(__FreeBSD__) unsigned long hwcap = qemu_getauxval(AT_HWCAP); unsigned long hwcap2 = qemu_getauxval(AT_HWCAP2);