Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D56CCD6E4A for ; Wed, 3 Jun 2026 03:34:21 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wUcLN-0001pE-Id; Tue, 02 Jun 2026 23:32:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wUcLK-0001YI-7r for qemu-arm@nongnu.org; Tue, 02 Jun 2026 23:32:34 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wUcLH-0004d9-46 for qemu-arm@nongnu.org; Tue, 02 Jun 2026 23:32:33 -0400 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2c0c3184c71so23007415ad.1 for ; Tue, 02 Jun 2026 20:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1780457549; x=1781062349; 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=z/Tioi3dpsi0F/SXE2FE6voGg8/eCNvGNXOCYhrTQy8=; b=NQmSajwP5zWbmRIaqgrttm3m1iFbNeJaUXB5QBB/Md2ynFGFhdb2IvnVm0WeCxjwhf TSscIbrpcbAWmhIxj+K5b6gY3ADK7APwQKxJeAb0Sr7prVjEzp51X0g0R+J7KC+Ls0eE 7yZe7P6FAuG01I8n2WOaAazvrYfk4dpeMyr7Pp9Enom9In+xLg6AaHBkjyMq2gbn654/ YWT+pJdtth1ZhXljkQzNRElbQbHuMvKpc6YH9oamZ/kR9+fphXHnNRlUIV5h0/S/mtyQ MteXQIaH/G2EvBAqxN+0fp31MesR4GH0qhgA7jHzl6soKlc8VWDkwg/KoglraQG957Cu f9tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780457549; x=1781062349; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=z/Tioi3dpsi0F/SXE2FE6voGg8/eCNvGNXOCYhrTQy8=; b=YLAjoJcg+4JWvvlppCEcuZL2/DWGVDOU0SwaKWnXW+0Tb98qL7vfC4x5hfaUcjsIe+ Lz6bdCXdyu8FnzPg7RXU7EhEKGvDrwBCeW/OnNz2boTq1ELfFW5R+PmCRvetzN/5at0n wv36zDivcLBPRrIb2w3KzqfJAQ39UUvf6nW7R+udlYcpiLTt7ZMok+WguAG/T6VY39k5 bnU2OTgVE2oe65dE1paj0ga0H0b3zVk1lqBuMONcqy+QpnFzRsR+s7mpp9nynJOHDDYr trRSTWSzyK+ZrODzUlIhPS1+Cpb4LsH1loxsJI7A3R8+6dR8Vp8yCFEt1UlUy7kQiyX8 fA2w== X-Gm-Message-State: AOJu0YxfuGA9E+yy47ecNypUewOdDmiYgrejtduS2HvQZxRqO5fDFsfr 1rhf608M7wqBXcCkKStgXtCucENxLJXu7BFh2yOS0nRhcxg3FXB7zUUU2Ezqx6K3lA7emXzxjxS KEV4Tjyw= X-Gm-Gg: Acq92OF++9YAWvCNuBoJAuxYZr7iPiDpCtDFaIcjmXuhugbVI2nh0Swye27+7us5/Tc XFny5zVdd34K5ugWDrCG7fvVIQElN9w3TUJl+MLBKlvZrtSCpU+a21FSvkEU1YYhLurUOfey+42 1OgEdOmLXopO43xNZ+aFbCcATed1zbBxPYAAU5/Znk/S3boqaeOSZLwFPd9u6ywpshuniWS7usp X20ewtU+buGtlxVs/t0Lu+pO3HhMc3cQmcmzFoEccnOV4LL03b6mZIBscj5eDdIGlx2H6MV89Q4 H+t7lQ19bl6RiQtKU+hxtug6Gzub2wfl23b1/odSfX6b7OdtNGYayeTMD9OAhBXQlzIVeZH8xTX aZWHeUzYQXl/8U8DGCmS+cOrvW/REH1ramQWUfK5UKgYblDPhRMWIHT9j87xApAjoX6NexUgNQN 52InaSlN8Oc6kR8h1gU/x/84P+98acqIhmKV5Hpdk= X-Received: by 2002:a17:903:41c6:b0:2c0:af09:f3d9 with SMTP id d9443c01a7336-2c1644d1700mr16187245ad.36.1780457549213; Tue, 02 Jun 2026 20:32:29 -0700 (PDT) Received: from stoup.. ([71.212.142.33]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c164fa0236sm7785685ad.33.2026.06.02.20.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2026 20:32:28 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v9 45/45] target/arm: Enable FEAT_F8F16MM for -cpu max Date: Tue, 2 Jun 2026 20:28:54 -0700 Message-ID: <20260603032855.106930-46-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260603032855.106930-1-richard.henderson@linaro.org> References: <20260603032855.106930-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- linux-user/aarch64/elfload.c | 1 + target/arm/tcg/cpu64.c | 1 + docs/system/arm/emulation.rst | 1 + 3 files changed, 3 insertions(+) diff --git a/linux-user/aarch64/elfload.c b/linux-user/aarch64/elfload.c index 7864765ba0..4887a3a7b7 100644 --- a/linux-user/aarch64/elfload.c +++ b/linux-user/aarch64/elfload.c @@ -172,6 +172,7 @@ abi_ulong get_elf_hwcap(CPUState *cs) GET_FEATURE_ID(aa64_gcs, ARM_HWCAP_A64_GCS); GET_FEATURE_ID(aa64_cmpbr, ARM_HWCAP_A64_CMPBR); GET_FEATURE_ID(aa64_f8mm8, ARM_HWCAP_A64_F8MM8); + GET_FEATURE_ID(aa64_f8mm4, ARM_HWCAP_A64_F8MM4); return hwcaps; } diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c index 15dafb9aee..15c1ece4b7 100644 --- a/target/arm/tcg/cpu64.c +++ b/target/arm/tcg/cpu64.c @@ -1399,6 +1399,7 @@ void aarch64_max_tcg_initfn(Object *obj) t = GET_IDREG(isar, ID_AA64FPFR0); t = FIELD_DP64(t, ID_AA64FPFR0, F8E5M2, 1); /* FEAT_FP8 */ t = FIELD_DP64(t, ID_AA64FPFR0, F8E4M3, 1); /* FEAT_FP8 */ + t = FIELD_DP64(t, ID_AA64FPFR0, F8MM4, 1); /* FEAT_F8F16MM */ t = FIELD_DP64(t, ID_AA64FPFR0, F8MM8, 1); /* FEAT_F8F32MM */ t = FIELD_DP64(t, ID_AA64FPFR0, F8DP2, 1); /* FEAT_FP8DOT2 */ t = FIELD_DP64(t, ID_AA64FPFR0, F8DP4, 1); /* FEAT_FP8DOT4 */ diff --git a/docs/system/arm/emulation.rst b/docs/system/arm/emulation.rst index dcfb4f2073..64b2a87e1a 100644 --- a/docs/system/arm/emulation.rst +++ b/docs/system/arm/emulation.rst @@ -67,6 +67,7 @@ the following architecture extensions: - FEAT_EPAC (Enhanced pointer authentication) - FEAT_ETS2 (Enhanced Translation Synchronization) - FEAT_EVT (Enhanced Virtualization Traps) +- FEAT_F8F16MM (8-bit floating-point matrix multiply-accumulate to half-precision) - FEAT_F8F32MM (8-bit floating-point matrix multiply-accumulate to single-precision) - FEAT_F32MM (Single-precision Matrix Multiplication) - FEAT_F64MM (Double-precision Matrix Multiplication) -- 2.43.0