From nobody Tue Nov 26 12:32:03 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=vrull.eu ARC-Seal: i=1; a=rsa-sha256; t=1707307225; cv=none; d=zohomail.com; s=zohoarc; b=MFIjh37ND5UHTBUYj6YSZar2fBDBVfN6II05TAEMHNqCxIapKaAFYh27Mm+GxN+zbl3O4JYuDjMxytGoxjtwALchP7PiH2OXtWZBn5xq7HPNHzJImD3DBwZqHK0wO3D8V3WqXnBeKFEv1cYFuyeEfOCSlDg+eKGtCqASGXSgpVA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1707307225; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=oHSK/y3sJR3GtAZLbH1e96ZNbJa/SUNy9xhqjabO6E8=; b=YkI+NdrhpM1Auld5TqGuDSEW10faSx+G6qlcF87p4ASF/a03A7zwQPRUfu2IBHc6Z9Ou20yl83fY/KrOm7woSAW+oukhjOSn+lfezTT634GAbrPtGFcz/sFHd33O9+qsAfT22zNoTiX5VnezRrQG4cORei6y7Pz3DbhXgX9zWI0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 170730722535453.689226529811776; Wed, 7 Feb 2024 04:00:25 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXgan-0000NQ-HH; Wed, 07 Feb 2024 06:59:53 -0500 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 ) id 1rXgal-0000FJ-JM for qemu-devel@nongnu.org; Wed, 07 Feb 2024 06:59:51 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXgac-0008PC-7U for qemu-devel@nongnu.org; Wed, 07 Feb 2024 06:59:51 -0500 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-55a5e7fa471so613518a12.1 for ; Wed, 07 Feb 2024 03:59:41 -0800 (PST) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id v2-20020aa7d802000000b0055efaddeafdsm588455edq.86.2024.02.07.03.59.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 03:59:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1707307180; x=1707911980; 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=oHSK/y3sJR3GtAZLbH1e96ZNbJa/SUNy9xhqjabO6E8=; b=RFzcjKiLOkAxZHX4rQndtC8ARSrRggquZlQ9zsupWLBH/FeCQRY1WJ6akc/4Ynkw2w N6+M2biapn3o4lNN9C/4XkgT9e6ccaS8TD3HJKUMje9q5/EEioDgiBrCWJwHwxVux/WH kX67320yCqZG/IpkCUef9Ek7C/NjGTZH/zTIVJbYM/weyAE/rahGdohZqBDyHjy9PbZY mhH3B4WDfc9ezNLwUgRUG0D9qE6dVAfTMcWZWT7DbPNmnpFdiPjv7F0bvKzjAaGHHLwJ qU5LaNdjSLmIN0ZjfAyagNQuS67fE9uz7nCYIklsdAsTIXVZA7i6XYS07qSJPeM590Ns 9Cmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707307180; x=1707911980; 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=oHSK/y3sJR3GtAZLbH1e96ZNbJa/SUNy9xhqjabO6E8=; b=eJ1+RLXFxPXgFlSCxqjuvUTcfIeJjzZe1WkpT52iy8cxlTEp/n8b8P9qzXT6uQSyX7 BfRJmjLj8qdyqn7hQjIqdQJY2a39FiZtv8VibAxBi26x12Y4aJQ8hklL90jEaGBYd2si 7TogRFz1gJWtcl2dM1j5Q6PXWMCg1J1DFc/oI0FO3u6VULukluynzh43OOiduKbpEwey maPBhxHiJZwgnxhebwo03WgLffcste5BM2d8k8VBTE1cq9uiMmtzBZzP4pITXvkRUnFk fegFwdjc/quB7KBX0yPCXZM54kYMiXMutCRgqf8HZooWFzmxuOKuRH0YAb/eR4qA4w4C UXhw== X-Forwarded-Encrypted: i=1; AJvYcCXr/ObjCIqTHBggx0tkm+EKOBBE/GPkOkqLuTKR0E8PT8hZtxU9zy/rQLprtmrk/IWez6miA7uUOqYi8UCSGuWOpGRQ59E= X-Gm-Message-State: AOJu0YyPsV43dl5QM0JKTSeXEsLVCoSoUbfvVrByFpHBt28scZ+VLGSE XiahogAqsAfZbP+ytfBwIxHzoRwI9KzZ2xW8Z1trbF/aEtIV5MaE813kzYDq+SY= X-Google-Smtp-Source: AGHT+IEYytWjmhzze2Isrscxm2cyHdidg4WaetHFUa6QWDc7yNRKMOj96QBY66x9LgeyFpoztV4GKA== X-Received: by 2002:aa7:da98:0:b0:55f:f7bb:40fd with SMTP id q24-20020aa7da98000000b0055ff7bb40fdmr3884954eds.2.1707307179957; Wed, 07 Feb 2024 03:59:39 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVQCebfiB3VfkaYroZAbzHPu2oW3AwwVIm3ZNq2Xf1otDR2iDEQyDbVHJ+kdTRBT09kOKIy1DTzAJOfDnIzKhTGRpHctlxywhTUH/s7riz4fYKsEP/YlMqY1k9Ji9kcSxX0paQCPvU7YLundun4VpewHqcdPdZ2CqxQb9eYvCdBKrqmsU9A1hMCrsfs6Uv2dM6GgqPo5nOu2xHnM8G2/0P998TZrkGdUYIwW3lu6VI5UjXMGe/065sYAJoFaUlAd7BqHFlfvH+blC5yXZm327TeKl53p9/ZAXTxr4uuMZFKGyejEQe59DlJ69UOZn37gelnMkVS5ieeCvClEcWn/EgpSsQ5X/iIlkwIqQ== From: =?UTF-8?q?Christoph=20M=C3=BCllner?= To: qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Alistair Francis , Bin Meng , Philipp Tomsich , Palmer Dabbelt , Richard Henderson , Daniel Henrique Barboza , Andrew Jones Cc: =?UTF-8?q?Christoph=20M=C3=BCllner?= , Laurent Vivier Subject: [PATCH 1/2] linux-user/riscv: Add Zicboz extensions to hwprobe Date: Wed, 7 Feb 2024 12:59:25 +0100 Message-ID: <20240207115926.887816-2-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240207115926.887816-1-christoph.muellner@vrull.eu> References: <20240207115926.887816-1-christoph.muellner@vrull.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=christoph.muellner@vrull.eu; helo=mail-ed1-x52f.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @vrull.eu) X-ZM-MESSAGEID: 1707307226666100001 Upstream Linux recently added RISC-V Zicboz support to the hwprobe API. This patch introduces this for QEMU's user space emulator. Signed-off-by: Christoph M=C3=BCllner Reviewed-by: Daniel Henrique Barboza --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e384e14248..43467c9707 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8799,6 +8799,7 @@ static int do_getdents64(abi_long dirfd, abi_long arg= 2, abi_long count) #define RISCV_HWPROBE_EXT_ZBA (1 << 3) #define RISCV_HWPROBE_EXT_ZBB (1 << 4) #define RISCV_HWPROBE_EXT_ZBS (1 << 5) +#define RISCV_HWPROBE_EXT_ZICBOZ (1 << 6) =20 #define RISCV_HWPROBE_KEY_CPUPERF_0 5 #define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0) @@ -8857,6 +8858,8 @@ static void risc_hwprobe_fill_pairs(CPURISCVState *en= v, RISCV_HWPROBE_EXT_ZBB : 0; value |=3D cfg->ext_zbs ? RISCV_HWPROBE_EXT_ZBS : 0; + value |=3D cfg->ext_zicboz ? + RISCV_HWPROBE_EXT_ZICBOZ : 0; __put_user(value, &pair->value); break; case RISCV_HWPROBE_KEY_CPUPERF_0: --=20 2.43.0 From nobody Tue Nov 26 12:32:03 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=vrull.eu ARC-Seal: i=1; a=rsa-sha256; t=1707307225; cv=none; d=zohomail.com; s=zohoarc; b=H9TowKdAFUAtifFToIFSuyN89cE+AHtn2t6bh0IwxlOQMjwrE32pw740Iy+1FyXv/CAuBOf/0f3DC24PWxbEZel9pD3FVdwyzVYQWqyrcBP4U6wDF9DZN/loYacpfBuTk1QZyWm5y+6CFSMEnTkRBeadhac6f6iZe+8XIYnDogY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1707307225; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=JVuDGiZQbjNstMd9itLMja4mWMGmzy39OyjDgJoEy1g=; b=dl2w9sP5GOpw21MnulAYOFc595fVOLa2vHh9Euq5xAMnuTzB3/pCDFw6MONJNWORC1PSnAk+NRbEx+/qkktGdUyGCane8X2QuL58ea9LG58bgixvndRjDBNc78oEOmrWsos2Wz5ZbGqiC859uPenSQvQN/EyZuWMUPUhKsBHZFg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1707307225248161.05631328998186; Wed, 7 Feb 2024 04:00:25 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXgao-0000QQ-P8; Wed, 07 Feb 2024 06:59:54 -0500 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 ) id 1rXgam-0000Jm-Ec for qemu-devel@nongnu.org; Wed, 07 Feb 2024 06:59:52 -0500 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXgah-0008Pn-4U for qemu-devel@nongnu.org; Wed, 07 Feb 2024 06:59:52 -0500 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5114b2b3b73so614052e87.0 for ; Wed, 07 Feb 2024 03:59:44 -0800 (PST) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id v2-20020aa7d802000000b0055efaddeafdsm588455edq.86.2024.02.07.03.59.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 03:59:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1707307183; x=1707911983; 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=JVuDGiZQbjNstMd9itLMja4mWMGmzy39OyjDgJoEy1g=; b=auNFJR83oVuSDygLPYGcV2CyWLaLJAMR815uOggYYwGvIaPatkGeP6cNf8vJV/It7N axnQtEG5cKj3B5KiIOwSLPK9CDyKia5FUOhTD3KGG2xNIx+aBQ57n/5q8rxwJ5IJNExn OpRGCoM+jGUgu9TiTNqLADzhDQVC0OybiiUyCVZbg3bswjs2xZGFgkxsiZPYhvSPPhlg MCkU8F2b7KbqOuDL0u5m+9I/SHYPJlmG2fQvXRBPp6kLL8fm1WGNie4PILpWCGFqvnUd z7AzWFN1xu0lD2jOuxadPQcR1fnnBI5f1KEMxEVAosEGXg+YIG5srat+8Ctgc2z+MKCV 5Odw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707307183; x=1707911983; 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=JVuDGiZQbjNstMd9itLMja4mWMGmzy39OyjDgJoEy1g=; b=asmIvrghi4lljzJre/1Ytye0Lq8D74gDI/rhUhq2IPfuajE02N/QCFjxTvq31Y/DLd N7aA7qfJKiu6lrRSvVBn1S6DKymiQBcl5npTHRKZ+r3N+/Dj51OdiSgGVpG+bXPgE+41 e88BA6v9X6Bt0jrlNM2uyXUZdIGD7g3G5pUHntkansSAqteugfv1gHFYdScpj5LR5fco y41xfP5oKyI2XO3JbjAywnZUg/o+gRbdy3bm+JnbVIJh+Yc8mqi8HjA71qBmoVtwlt9O WNOVGL+HNC3ZROhRGX3LeOkB/FemI1+ORLWtfrXOGISrxqfRJotNShV8Ls01xPQI4ffW ooAQ== X-Gm-Message-State: AOJu0YyWj6TzIxmVbitKxWTtaR1vmVuYLzR4cut0M/8Q4hk9xK31Fakr 31HGWrxiszFsn6Tty6GsFhKAG5H8je/LiiKX/c2B8/ycJXUocVOpoxVRym+nkQw= X-Google-Smtp-Source: AGHT+IGOHNgGXRLZ3ZHv4DjFFhA0j5/xHbVr4++izDlzudor9xWmjBcppIECgAY0B6bNi4orrP1FPw== X-Received: by 2002:a2e:7d02:0:b0:2d0:a037:b93d with SMTP id y2-20020a2e7d02000000b002d0a037b93dmr4172040ljc.41.1707307182938; Wed, 07 Feb 2024 03:59:42 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXCm2pNfAN/cp34fmYGgJy872L8bC9uwJ2JlbajkDRm9UFjaKIO13Wb73NrO308CDuLAseFjOQSs2IOZwZfD5sbwBoa7JDg2Ej1Q5MZ11E4baQruDK1wH7cIEp5mPMBXLD9YwhgDCQ0CYISkbEyTwBK3U1muk6jU86MyG84zd8Onx6UtAqT1vfImGWLjuiqPlJAytkXwjUE7U9Hy3F1iG6YL40NSnxsNUl7qtZOOROIJzGt5clkU8t6j9EyyTtKeU+xR8u4aAKNxBwWwjOGL5V5GLAPQWoMFZIms7Cff2bJtjEsHYDRtjfGuocKiy9tvkOOpRF4BsF408eZ5PUZDifEcXZ9duJIVbptmg== From: =?UTF-8?q?Christoph=20M=C3=BCllner?= To: qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Alistair Francis , Bin Meng , Philipp Tomsich , Palmer Dabbelt , Richard Henderson , Daniel Henrique Barboza , Andrew Jones Cc: =?UTF-8?q?Christoph=20M=C3=BCllner?= , Laurent Vivier Subject: [PATCH 2/2] linux-user/riscv: Sync hwprobe keys with Linux Date: Wed, 7 Feb 2024 12:59:26 +0100 Message-ID: <20240207115926.887816-3-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240207115926.887816-1-christoph.muellner@vrull.eu> References: <20240207115926.887816-1-christoph.muellner@vrull.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=christoph.muellner@vrull.eu; helo=mail-lf1-x136.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, UPPERCASE_50_75=0.008 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @vrull.eu) X-ZM-MESSAGEID: 1707307226690100002 Upstream Linux recently added many additional keys to the hwprobe API. This patch adds support for all of them with the exception of Ztso, which is currently not supported in QEMU. Signed-off-by: Christoph M=C3=BCllner Reviewed-by: Daniel Henrique Barboza --- linux-user/syscall.c | 98 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 91 insertions(+), 7 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 43467c9707..3ba20f99ad 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8793,13 +8793,41 @@ static int do_getdents64(abi_long dirfd, abi_long a= rg2, abi_long count) #define RISCV_HWPROBE_BASE_BEHAVIOR_IMA (1 << 0) =20 #define RISCV_HWPROBE_KEY_IMA_EXT_0 4 -#define RISCV_HWPROBE_IMA_FD (1 << 0) -#define RISCV_HWPROBE_IMA_C (1 << 1) -#define RISCV_HWPROBE_IMA_V (1 << 2) -#define RISCV_HWPROBE_EXT_ZBA (1 << 3) -#define RISCV_HWPROBE_EXT_ZBB (1 << 4) -#define RISCV_HWPROBE_EXT_ZBS (1 << 5) -#define RISCV_HWPROBE_EXT_ZICBOZ (1 << 6) +#define RISCV_HWPROBE_IMA_FD (1 << 0) +#define RISCV_HWPROBE_IMA_C (1 << 1) +#define RISCV_HWPROBE_IMA_V (1 << 2) +#define RISCV_HWPROBE_EXT_ZBA (1 << 3) +#define RISCV_HWPROBE_EXT_ZBB (1 << 4) +#define RISCV_HWPROBE_EXT_ZBS (1 << 5) +#define RISCV_HWPROBE_EXT_ZICBOZ (1 << 6) +#define RISCV_HWPROBE_EXT_ZBC (1 << 7) +#define RISCV_HWPROBE_EXT_ZBKB (1 << 8) +#define RISCV_HWPROBE_EXT_ZBKC (1 << 9) +#define RISCV_HWPROBE_EXT_ZBKX (1 << 10) +#define RISCV_HWPROBE_EXT_ZKND (1 << 11) +#define RISCV_HWPROBE_EXT_ZKNE (1 << 12) +#define RISCV_HWPROBE_EXT_ZKNH (1 << 13) +#define RISCV_HWPROBE_EXT_ZKSED (1 << 14) +#define RISCV_HWPROBE_EXT_ZKSH (1 << 15) +#define RISCV_HWPROBE_EXT_ZKT (1 << 16) +#define RISCV_HWPROBE_EXT_ZVBB (1 << 17) +#define RISCV_HWPROBE_EXT_ZVBC (1 << 18) +#define RISCV_HWPROBE_EXT_ZVKB (1 << 19) +#define RISCV_HWPROBE_EXT_ZVKG (1 << 20) +#define RISCV_HWPROBE_EXT_ZVKNED (1 << 21) +#define RISCV_HWPROBE_EXT_ZVKNHA (1 << 22) +#define RISCV_HWPROBE_EXT_ZVKNHB (1 << 23) +#define RISCV_HWPROBE_EXT_ZVKSED (1 << 24) +#define RISCV_HWPROBE_EXT_ZVKSH (1 << 25) +#define RISCV_HWPROBE_EXT_ZVKT (1 << 26) +#define RISCV_HWPROBE_EXT_ZFH (1 << 27) +#define RISCV_HWPROBE_EXT_ZFHMIN (1 << 28) +#define RISCV_HWPROBE_EXT_ZIHINTNTL (1 << 29) +#define RISCV_HWPROBE_EXT_ZVFH (1 << 30) +#define RISCV_HWPROBE_EXT_ZVFHMIN (1 << 31) +#define RISCV_HWPROBE_EXT_ZFA (1ULL << 32) +#define RISCV_HWPROBE_EXT_ZACAS (1ULL << 34) +#define RISCV_HWPROBE_EXT_ZICOND (1ULL << 35) =20 #define RISCV_HWPROBE_KEY_CPUPERF_0 5 #define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0) @@ -8860,6 +8888,62 @@ static void risc_hwprobe_fill_pairs(CPURISCVState *e= nv, RISCV_HWPROBE_EXT_ZBS : 0; value |=3D cfg->ext_zicboz ? RISCV_HWPROBE_EXT_ZICBOZ : 0; + value |=3D cfg->ext_zbc ? + RISCV_HWPROBE_EXT_ZBC : 0; + value |=3D cfg->ext_zbkb ? + RISCV_HWPROBE_EXT_ZBKB : 0; + value |=3D cfg->ext_zbkc ? + RISCV_HWPROBE_EXT_ZBKC : 0; + value |=3D cfg->ext_zbkx ? + RISCV_HWPROBE_EXT_ZBKX : 0; + value |=3D cfg->ext_zknd ? + RISCV_HWPROBE_EXT_ZKND : 0; + value |=3D cfg->ext_zkne ? + RISCV_HWPROBE_EXT_ZKNE : 0; + value |=3D cfg->ext_zknh ? + RISCV_HWPROBE_EXT_ZKNH : 0; + value |=3D cfg->ext_zksed ? + RISCV_HWPROBE_EXT_ZKSED : 0; + value |=3D cfg->ext_zksh ? + RISCV_HWPROBE_EXT_ZKSH : 0; + value |=3D cfg->ext_zkt ? + RISCV_HWPROBE_EXT_ZKT : 0; + value |=3D cfg->ext_zvbb ? + RISCV_HWPROBE_EXT_ZVBB : 0; + value |=3D cfg->ext_zvbc ? + RISCV_HWPROBE_EXT_ZVBC : 0; + value |=3D cfg->ext_zvkb ? + RISCV_HWPROBE_EXT_ZVKB : 0; + value |=3D cfg->ext_zvkg ? + RISCV_HWPROBE_EXT_ZVKG : 0; + value |=3D cfg->ext_zvkned ? + RISCV_HWPROBE_EXT_ZVKNED : 0; + value |=3D cfg->ext_zvknha ? + RISCV_HWPROBE_EXT_ZVKNHA : 0; + value |=3D cfg->ext_zvknhb ? + RISCV_HWPROBE_EXT_ZVKNHB : 0; + value |=3D cfg->ext_zvksed ? + RISCV_HWPROBE_EXT_ZVKSED : 0; + value |=3D cfg->ext_zvksh ? + RISCV_HWPROBE_EXT_ZVKSH : 0; + value |=3D cfg->ext_zvkt ? + RISCV_HWPROBE_EXT_ZVKT : 0; + value |=3D cfg->ext_zfh ? + RISCV_HWPROBE_EXT_ZFH : 0; + value |=3D cfg->ext_zfhmin ? + RISCV_HWPROBE_EXT_ZFHMIN : 0; + value |=3D cfg->ext_zihintntl ? + RISCV_HWPROBE_EXT_ZIHINTNTL : 0; + value |=3D cfg->ext_zvfh ? + RISCV_HWPROBE_EXT_ZVFH : 0; + value |=3D cfg->ext_zvfhmin ? + RISCV_HWPROBE_EXT_ZVFHMIN : 0; + value |=3D cfg->ext_zfa ? + RISCV_HWPROBE_EXT_ZFA : 0; + value |=3D cfg->ext_zacas ? + RISCV_HWPROBE_EXT_ZACAS : 0; + value |=3D cfg->ext_zicond ? + RISCV_HWPROBE_EXT_ZICOND : 0; __put_user(value, &pair->value); break; case RISCV_HWPROBE_KEY_CPUPERF_0: --=20 2.43.0