From patchwork Mon Jan 9 01:42:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 640559 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp1914651pvb; Sun, 8 Jan 2023 17:44:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXvD/3xzKJdiUuefAWqkOaHyXgK7HCs/r1OfIUCD4xD+fU6jeOsf68Jl6GIXs/O68gB6Dbci X-Received: by 2002:a05:6214:5693:b0:531:7ff5:9932 with SMTP id lm19-20020a056214569300b005317ff59932mr76269676qvb.28.1673228667637; Sun, 08 Jan 2023 17:44:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673228667; cv=none; d=google.com; s=arc-20160816; b=jhcj+rJ48/CNOTQs9RdjfchY1cF7FfKe1o3FnhiguYA5v9YnF6T4oEBSQk7n1ryYll Vr1ZXtKmhLBMKQLFtZcnsAIH0eFzbWnIGLbU/FDKRje8YQ/oAkEK0kfcSd6ypKGTGvPF XepaiRrwmKVrvqI4Ir9ZXqUY86M3pyMPQ8ggNq9QAPePNhtk4x1AYvsFWJPoQOcxgyUa HC6OdULl7gWdRpE/u9WctHaP5k5N502bTTIFCtB+tzZIRxqSDYM7JxgtVo/Mh1XH4ZIk a+O5PPs5+3Dz7RYZOOSIP798wWbGfqLwzaPX4vqMZyop8EhVvRlTnKLCAMGg4YGnFYwa Gccw== 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=op0Rf4OXX9B+XJCysG6bOjZLlZA6usVvQUy5OnNEk0M=; b=oTZV80+Gkavxb7tNxs9NtI2yF8n1AnCP/FVS/SZftasdVl3VxOAaJqUFpFW9L720Jf wcjjvi1cZbyj0cLD+V2YyWQtRrY6Arq7I7swobtzcP6PQccNpUUdy2Kim/Gr4M5DrHjC QdHq+dr+LGc4icdVBVwlt8Si+gXvC4PMZMLrnXhTexaT27rtaQYWek48iSR6VVlPbLHM or0dMBt4t5WGR+l/NurDqW4rOw2fIgsCyEzFnt4ln/794itrFA+BgU0Z7GdQHDcB6Ylf YudiEAae5z4zFUkgwHHTAu3Xtp2ReIyKaGf1sdE8APNfPyK1MJADrncz59pThKK1rN6U 4REA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=obpYe50V; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id hr8-20020a05621423c800b004ad0f5cf00esi3823030qvb.117.2023.01.08.17.44.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Jan 2023 17:44:27 -0800 (PST) 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=obpYe50V; 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 ) id 1pEhBw-0000sj-TH; Sun, 08 Jan 2023 20:43:12 -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 1pEhBv-0000s6-4E for qemu-devel@nongnu.org; Sun, 08 Jan 2023 20:43:11 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEhBt-0001aU-LZ for qemu-devel@nongnu.org; Sun, 08 Jan 2023 20:43:10 -0500 Received: by mail-pj1-x1032.google.com with SMTP id o13so3761222pjg.2 for ; Sun, 08 Jan 2023 17:43:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=op0Rf4OXX9B+XJCysG6bOjZLlZA6usVvQUy5OnNEk0M=; b=obpYe50VjzdOvjlEFglcIoQJbuSpHUVNSPDAklEgvDunzjudmVywZtztfnASePXamn k8fRqpSbHCgZcBbLy/EbqXB4qu4J/QQBOErEXCsKvUsxVsaBJa/+P9XQnGxLCwtIg6Le uEScZataojyfD4WFutLHZkGIwyMCdr6p37cjZA1n8HoM34oKfny1fksYA63TzvWqjcaD Gr2F6q4lW/mW4WcljPWo9DoKDdXIQvSYxEetRuaLCNnFNP1GYBD78FgqAPuK75Y4F9RN E9DazRtqsD6NyPY70UKDPvPC7oX/aJO8dHNU5kbuc8aE2I6RKQS/pANCFSyEp4WsrLoS OwTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=op0Rf4OXX9B+XJCysG6bOjZLlZA6usVvQUy5OnNEk0M=; b=iu9rLOoyyoeNHDI6oz2ULAUQ0Sy49UK0AT4iYP/7OKXt4QYnQyzCn+LN6J9/iD7kmp 3caFxdrw6fwKtTqDVHyaVNlDvzim8mPoy3n6lVwQRt7mJDBCJJlEasKIAmXjE4AEdKhM f7ajBAvk2jCHl6gCk5uqT/gcs82ofnXklN+G6fcicyE2YijUHoJClCOjKNo1uItiAB/K Of7uW2SZE4/9PNK44HOtiC+8XYz5GkCn0CXqVM3gIWUmifBCOl0U5iCIqOWm0awb4OVE rGcUaS1I4yhXUP/ZrWyRnpq53nsxGEGu2GYeievgpM88eIsgtrohasbJPoLcVoQnl8Gt cnmQ== X-Gm-Message-State: AFqh2kqOqyXwo6fdlYahkBEoxUo7PF+SM2sk8DktHLYcFOHi3ScfsvAt 7rpLewMDAaFr1KV6ZtbUHNwG8GepUsk5GyRb X-Received: by 2002:a05:6a20:be26:b0:b0:3329:c395 with SMTP id ge38-20020a056a20be2600b000b03329c395mr78742554pzb.30.1673228588501; Sun, 08 Jan 2023 17:43:08 -0800 (PST) Received: from stoup.. ([2602:47:d48c:8101:a909:891c:953d:a6b0]) by smtp.gmail.com with ESMTPSA id w13-20020a170902ca0d00b00178b77b7e71sm4743617pld.188.2023.01.08.17.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Jan 2023 17:43:08 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 21/22] tcg/riscv: Introduce OPC_NOP Date: Sun, 8 Jan 2023 17:42:47 -0800 Message-Id: <20230109014248.2894281-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230109014248.2894281-1-richard.henderson@linaro.org> References: <20230109014248.2894281-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée --- tcg/riscv/tcg-target.c.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tcg/riscv/tcg-target.c.inc b/tcg/riscv/tcg-target.c.inc index 136fe54d4b..82ca86431e 100644 --- a/tcg/riscv/tcg-target.c.inc +++ b/tcg/riscv/tcg-target.c.inc @@ -267,6 +267,7 @@ typedef enum { #endif OPC_FENCE = 0x0000000f, + OPC_NOP = OPC_ADDI, /* nop = addi r0,r0,0 */ } RISCVInsn; /* @@ -403,7 +404,7 @@ static void tcg_out_nop_fill(tcg_insn_unit *p, int count) { int i; for (i = 0; i < count; ++i) { - p[i] = encode_i(OPC_ADDI, TCG_REG_ZERO, TCG_REG_ZERO, 0); + p[i] = OPC_NOP; } }