From nobody Mon Apr 6 19:49:57 2026 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=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1773829979; cv=none; d=zohomail.com; s=zohoarc; b=JLvrG5TqODxcjdjwV5CUV+aAKzsDD8tp+QAueEr6oB2ycsxVzlu4orDfFb6j1fLaPI3bXQY1IAr3AfBaKOGcAQd/D3Uu576duEge5f0Tb19yhSedLIcQ6toH6m9W5fZiFHcmB0j9Y7NFJJ5mHFdRj3vVDmjTCVgrogmlQXekIk0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773829979; 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=FMfrcT4w/8JaS+GLgLEbdAlqvnuBLRTQjJxeUizycR8=; b=HwtH3AmYSWPN5i73s75O9ZPOilg4JtmLRMbMyPYTXnPDEHGB4zxnQFeuXOJpKasoV4NKOulXQ2VvpFtgD7m+Gx7qK5KJ/kwrwdVnnQbqhT9d0BLwGya33wqzPcUTZ0GqP3VFxtF5uZQkOl32R2P4zb9eQWyVMxer3K7Xot7RCJM= 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=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1773829979290714.1748851455857; Wed, 18 Mar 2026 03:32:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1w2oCO-0001aU-VK; Wed, 18 Mar 2026 06:32:27 -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 ) id 1w2oC3-0001Yg-BZ for qemu-devel@nongnu.org; Wed, 18 Mar 2026 06:32:04 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1w2oBw-0002Ok-Ti for qemu-devel@nongnu.org; Wed, 18 Mar 2026 06:31:58 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-485410a0a8aso60403555e9.2 for ; Wed, 18 Mar 2026 03:31:55 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b51852aa8sm6046099f8f.15.2026.03.18.03.31.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 18 Mar 2026 03:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773829914; x=1774434714; 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=FMfrcT4w/8JaS+GLgLEbdAlqvnuBLRTQjJxeUizycR8=; b=rwstKfZfr0o5psUtzwW19y9UWmlWm9Mm+bIx68I6nNu6V9jYrSx1+GoPcDp4JuwXs+ GhVwyWNjAzUKBOB3IsxJRZCHXxyEb0iXhlTMRagTrw/SApEMHNGQ+f5z4ZrJRZeYrPDL DGJF0853ZyN3u6FBnvOy/uu9FOjqJq1BZKhqrHEsYh77f1wWBlPv4KU7rfsxn5uxs1Z7 58TbyaAjmHKZL9RoVyn3YE52isjP2a/eo1syzJc0gHYPX0FVUGfWkFSKzrBO7PN3h3Eu 4LZTfoFfYkWKU7sG4H0OdmK7nQyzLz5T9nJUmAlp2WoWYrpEQmiwaoEqNELOff/WbXnK 1ouA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773829914; x=1774434714; 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=FMfrcT4w/8JaS+GLgLEbdAlqvnuBLRTQjJxeUizycR8=; b=pTTBNJQVHqDfbMwHHC3LgvGlM0PBR9uVxHnEJxk/tRSzICZdzUaR97hle4L2J5BJNo p5HWjiGNQT3inEMVZ6yaM5bW3GaLeF64orr01cLwW3uA2puvrbiO0ZuTMinZ76tR6/t2 +WXh1y09+zPTgRGcG2ngKN+3kf7q41SF6sIyNnaneMl5D0TcEHIWyA8PaEzSVqUdpOgM NVHzfjRtX7Fn79WFW5SFQ1KrUq1iEdxpoNqZV6onD0KbaZKD3zjeLnobOou/mKP2PNZQ ZdL87vfoMrSuxdpBVN+Exs3ri7PcKI8+Q/9jJQoRU6ueDjX1Yyz+dr806smA327weih7 hP6A== X-Gm-Message-State: AOJu0YyPZYeQ3g7nGpDygq2DBzujI74ckG1zsXU7Bby4QbzyoH3u+Qik iI0dnJ9uedwa5PZvoPoinAp5ipy4PGBatTIPil99NA+0UdB/3FMHyRMHvY3MFFqPsWA5MtAT6fi ecgCnXfg= X-Gm-Gg: ATEYQzwQsA1cem5ucw1gjdvDz+CB9BvdIO+zawGaFXhazudXoOSE9bAhg5ls2eoKlKK cYQgU9ePwmnrXCD40CFv+w8k8DUWu/VUelY4hEdQRcTkP/k9GEAoEQlji8ah9p/UDoCukLChrnw Dr1aiZ4/xSH8KDtCEuy5o8ylZ3qWdNE24ucCh4ZUxkE0is7tN2D2RqlS9No7oJ+5NRIEYmZVFdH I8jL1FBjmghEBJ5NFTWpAWYYRePHKq8PF+wh0XSJZFJlyE7cq8xUhuGQBq8+oBRmC/MJg3qVaDE 1GBGNVbEKiDSB3hqTns2JzVEcTFZBEUkFgu5d7LBlVCi+NvHlwE7+Sy/KuYxwOpdCreiuOPufor XNdfKchVKO2xd+4cdKo5pb5yk6J1t+MY9f5uQoe64ejsnoBg9wtzMR2+f+CncCvR6WH4IzFGSHR f5xruvaetcNrtyyZDDjB/BEKxfkf0+XKiHglVNXIaksHwClolcxcu3pZI7B3qSfsHHmxerHRc+ X-Received: by 2002:a05:600c:8b0a:b0:485:3193:6ddb with SMTP id 5b1f17b1804b1-486f442207amr45600085e9.3.1773829914488; Wed, 18 Mar 2026 03:31:54 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Weiwei Li , Pierrick Bouvier , Warner Losh , =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9trot?= , Vijai Kumar K , Anton Johansson , Daniel Henrique Barboza , qemu-riscv@nongnu.org, Alistair Francis , Palmer Dabbelt , Jiaxun Yang , Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Alistair Francis , Liu Zhiwei , Djordje Todorovic Subject: [PATCH-for-11.1 04/16] target/riscv: Remove MTTCG check for x-rv128 CPU model Date: Wed, 18 Mar 2026 11:31:09 +0100 Message-ID: <20260318103122.97244-5-philmd@linaro.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260318103122.97244-1-philmd@linaro.org> References: <20260318103122.97244-1-philmd@linaro.org> 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::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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 @linaro.org) X-ZM-MESSAGEID: 1773829980488154100 From: Fr=C3=A9d=C3=A9ric P=C3=A9trot We had to check that mttcg was not used when executing QEMU with -cpu x-rv128 as a single 128-bit access was done as two distinct 64-bit accesses. Now that we use the 128-bit ld/st that access the data atomically, this check is no longer necessary. Signed-off-by: Fr=C3=A9d=C3=A9ric P=C3=A9trot Message-ID: <20260101181442.2489496-3-frederic.petrot@univ-grenoble-alpes.f= r> Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis --- target/riscv/tcg/tcg-cpu.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/target/riscv/tcg/tcg-cpu.c b/target/riscv/tcg/tcg-cpu.c index 988b2d905f5..3407191c224 100644 --- a/target/riscv/tcg/tcg-cpu.c +++ b/target/riscv/tcg/tcg-cpu.c @@ -1305,16 +1305,6 @@ static bool riscv_tcg_cpu_realize(CPUState *cs, Erro= r **errp) } =20 #ifndef CONFIG_USER_ONLY - RISCVCPUClass *mcc =3D RISCV_CPU_GET_CLASS(cpu); - - if (mcc->def->misa_mxl_max >=3D MXL_RV128 && qemu_tcg_mttcg_enabled())= { - /* Missing 128-bit aligned atomics */ - error_setg(errp, - "128-bit RISC-V currently does not work with Multi " - "Threaded TCG. Please use: -accel tcg,thread=3Dsingle"); - return false; - } - CPURISCVState *env =3D &cpu->env; =20 tcg_cflags_set(CPU(cs), CF_PCREL); --=20 2.53.0