From nobody Mon Feb 9 06:33:58 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1769412095; cv=none; d=zohomail.com; s=zohoarc; b=Px8wxRVqVAIQMTwF7I6GwtEM55GQsRYllGHzKjSNoQ0qoE4fYtJdBE7VXEw3hEKMSwEPcWVVqGFGwYO2ShOYQA3ss3xYzCxwQFpFa2iABfcKVYqm/LEkMX9EYg04GAhYQEYzItkd2O09yaecs0R0ufNT1rCwtzI6nkkmrKUAi48= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769412095; h=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=90E4mxgxD+julKzw6BxH6qVTPgf7G7qUtJs5JfsrDkI=; b=M3lkkrICNwR9xSlLfatGkvUCF0UfBvD54QjrjDxPtRfmcWaYptBLZHHB2z+iX4NvG0nA760U68BMhX/YVwNBEdIM/BfmWMfNwv82/ae+vDx6LNC5zSIC88eGfGj9syR7GeEBqRiUXrxhS77tQVaOYE4c5aFAnhlnBn8st8ZhuNs= 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 1769412095727961.3721057753996; Sun, 25 Jan 2026 23:21:35 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vkGtE-00058I-GN; Mon, 26 Jan 2026 02:20:00 -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 1vkGft-00034z-5J for qemu-devel@nongnu.org; Mon, 26 Jan 2026 02:06:21 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vkGfm-0004Pf-RY for qemu-devel@nongnu.org; Mon, 26 Jan 2026 02:06:10 -0500 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-29f2676bb21so42989245ad.0 for ; Sun, 25 Jan 2026 23:05:42 -0800 (PST) Received: from brahms.. (fp93c00990.tkyc601.ap.nuro.jp. [147.192.9.144]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-823187716ebsm8661487b3a.66.2026.01.25.23.05.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jan 2026 23:05:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769411142; x=1770015942; 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=90E4mxgxD+julKzw6BxH6qVTPgf7G7qUtJs5JfsrDkI=; b=kb97XZrcUvyXMa1bchEShcEdKayWMoYRO+B0dO0Md6hFpmI1cVoK7JVznK/Ta+pnBJ rnxilbbHcRP/71eBqoaMThMEleSvHGNknmavVsJnoamcCl/Q3d1xOOxWVJNAnLckzwi4 JqSzIuSeq3seatYNyIItZJgEaOepyzql1ckJXFjsHkDJ22kVpnr6yATcvKcPo70EINT4 z2UTvoVium+4ePsF7XKXEPqBv52JH4U2d3befUhyCXR2ChzCDEJr/b3zjP0DpJzPE13i CCI1bJ4N74hhFm24NUJWl6Z501bDYS8SfGu+S5xEwIuN5fgwgkvA1wySoRJiabgCYVWg gBjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769411142; x=1770015942; 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=90E4mxgxD+julKzw6BxH6qVTPgf7G7qUtJs5JfsrDkI=; b=cLnUCsit5z6UN+VYL7feBPwKDICtaM61+7GR5XRJpOpoSaEs/MZ6z6++AzFoa6toxq b7i4dIOzUjKvuK4Csq3RDU9d7GftpBhKSzdPtxWUGT267dWjErYXqGIEt2HS1k2xvNQw cKfCUUVDLnolGuOAxTnvm5ua5yBw+pdCeSMlVUlScATI0C1nO/2q2FWNMpKpiU50rGlz 9kM43KiSSXvcDcy0vZOwzhqwueUcsvLxTonkr2/H+d44gWBgwB3ZHUQzzSg9ktxvibnV EZeG2D4RxlnEFfq11mY03m7vuJxMHS92beUxS3SfR6HKZN73how9EUQUjYnHTc06KoG1 JqHA== X-Gm-Message-State: AOJu0YwY0zntZgn1OCDkryonza8nz+SC69CNY35EJI4C4US/h5ntupuk 1PmV8NTvijf5DCLaJ//MUqz+f1Wb2c/T+MSBG8MtTJ3uC5yRGTGztfyifEQEYY5b X-Gm-Gg: AZuq6aIo8ArviPAYozzzU5sEEyWmbZXxsa2OA2PjgUbeY1Pv+B5zKo+WnA+r1llYhBK wzuBt9p680pUH98BOYTx29CZbrFKweMs/b80fOVqjMAeofLhpXkvGxagzokXRkaOIU/bJwsWVHq I1nrx9lq/pzHLtrmELxHuBFhdjVawDE947IQ4I/5U+Gx1KDc4QMKWAypBi34zIiwA5mZ8iyMtO8 WD1wvaB1E1WwDfLUKVbw1/U6XdYsJu5Syy+vKZlEfIPKDeWrO+bkAYQj8GkBImKXHttAELOkKtO fQTpqqDad6DxUP75ldw48b3XX6hntaWkGPU5Ulq8vpMApu6YJna9/erDlLky5dnzgSImGztLKIb xeyKDk2QKg5o2+xgS0q5ShtNfPLmxvyn9lv4bPRsB3Ky3ObiIA0ZnR4XG/F0ewkEMf+/6lj9clZ b4+Pqhn17Qs/pit8zO4lp9FN/RbDFH910t+sJDrIqcUw== X-Received: by 2002:a17:903:2c03:b0:2a3:1b33:ae11 with SMTP id d9443c01a7336-2a84533f4efmr29797365ad.53.1769411141736; Sun, 25 Jan 2026 23:05:41 -0800 (PST) From: Kohei Tokunaga To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Paolo Bonzini , Richard Henderson , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , WANG Xuerui , Aurelien Jarno , Huacai Chen , Jiaxun Yang , Aleksandar Rikalo , Palmer Dabbelt , Alistair Francis , Stefan Weil , Kohei Tokunaga , qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Stefan Hajnoczi , Pierrick Bouvier Subject: [PATCH v4 21/33] tcg/wasm64: Mark unimplemented instructions Date: Mon, 26 Jan 2026 07:03:34 +0000 Message-ID: <3a8c9ff06ad2a45f1abb375993dfed60272530e4.1769407033.git.ktokunaga.mail@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 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=2607:f8b0:4864:20::629; envelope-from=ktokunaga.mail@gmail.com; helo=mail-pl1-x629.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, FREEMAIL_FROM=0.001, 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 @gmail.com) X-ZM-MESSAGEID: 1769412097736154100 Content-Type: text/plain; charset="utf-8" This commit adds the C_NotImplemented constraint and provides stubs for the functions that aren't implemented in the Wasm backend. Signed-off-by: Kohei Tokunaga --- tcg/wasm64/tcg-target.c.inc | 119 ++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/tcg/wasm64/tcg-target.c.inc b/tcg/wasm64/tcg-target.c.inc index d187dca970..bab69b00ca 100644 --- a/tcg/wasm64/tcg-target.c.inc +++ b/tcg/wasm64/tcg-target.c.inc @@ -1960,6 +1960,125 @@ static void tcg_out_mb(TCGContext *s, unsigned a0) tcg_wasm_out8(s, 0x00); } =20 +static const TCGOutOpDeposit outop_deposit =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpExtract outop_extract =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpExtract2 outop_extract2 =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBinary outop_addco =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpAddSubCarry outop_addci =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBinary outop_addcio =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpAddSubCarry outop_subbo =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpAddSubCarry outop_subbi =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpAddSubCarry outop_subbio =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpUnary outop_not =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBinary outop_andc =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBinary outop_eqv =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBinary outop_nand =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBinary outop_nor =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBinary outop_orc =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpDivRem outop_divs2 =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpDivRem outop_divu2 =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpMul2 outop_muls2 =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBinary outop_mulsh =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpMul2 outop_mulu2 =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBinary outop_muluh =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBswap outop_bswap16 =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpBswap outop_bswap32 =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpUnary outop_bswap64 =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpQemuLdSt2 outop_qemu_ld2 =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static const TCGOutOpQemuLdSt2 outop_qemu_st2 =3D { + .base.static_constraint =3D C_NotImplemented, +}; + +static bool tcg_out_xchg(TCGContext *s, TCGType type, TCGReg r1, TCGReg r2) +{ + return false; +} + +static void tcg_out_set_borrow(TCGContext *s) +{ + g_assert_not_reached(); +} + +static void tcg_out_set_carry(TCGContext *s) +{ + g_assert_not_reached(); +} + static void tcg_out_tb_start(TCGContext *s) { init_sub_buf(); --=20 2.43.0