From patchwork Tue Jan 17 23:10:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 643437 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp1443855pvb; Tue, 17 Jan 2023 15:13:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXuzQPl+2719rDh4BRxY1eMLIG/9694GOhOnPyjR/nAXbueSV/9wZWVTAklrlzpx3FoHa/J5 X-Received: by 2002:a05:6214:4287:b0:535:2d28:bf1d with SMTP id og7-20020a056214428700b005352d28bf1dmr5173342qvb.33.1673997234222; Tue, 17 Jan 2023 15:13:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673997234; cv=none; d=google.com; s=arc-20160816; b=pWqHQWxnjdfJWBqonzQw84CYCk3lX4CBGlnHHoKx5JkJUlRkoMpIMxB/3bS5FjWblX /Z2SlnkzluqszKvH2IrQxmUd6T6pWGdnW0c+bJnG0vIXFtLOdRl2xBKPNSs5VoxfP5z0 EMgpWGzUU8XmX8E2CkAc9kyQ3Tnlci9uyy5xNIAET14Fjvsmef02pX436EgHowoujZwA 1pO19DWjpH0w+bOYQcczxvUxHetV9Syr/smzVb1d1ckPW/hhIHF6dDgpB4JoZmuKhQpp 6+chqQDBJl2s/is8v0RLUkOXSENMjIG/14l6cEkI4/aakcl0obZxtZb0j03Ix5/QarTE J7+w== 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=PwXkaDD20Cfx8f1Iebsx9a3a6LNR85MdarseuO3nHWc=; b=bQxkk5cWClpijEmmZsK81b2pibgnG00Os0XQLi3NcQ+PBWNWdLDXi+RXvCPyOeXTNE 3wrJSisCKc3T42e90YgWNf8ewWIC3chSK/BHk0ySFQ7HHeJCAb/oA/qbHNtCXt2dNR4a DdhSr+8c5yX3/KSN+v2fyZ9M2HH03RSj8uIqDH0xBGa3PtkFBcVjyxCT8KDhWaBp4rZL LxO0LLU242DORJ3fckuW8e12kjkrMF0lkONCTb85w2De2ei2oG/yq8lJK7e5G5LEdpUY 0CWrKSCO4O0hDeqpHUCpuyj4j147XKcvxMw3gNuzOT4icBa2QVWC3UGERdQ9X7oMb0Rs MU1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Be5ivDxA; 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 jl11-20020ad45e8b000000b00534a099dc2dsi7048375qvb.379.2023.01.17.15.13.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jan 2023 15:13:54 -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=Be5ivDxA; 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 1pHv77-0003xp-Rw; Tue, 17 Jan 2023 18:11:33 -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 1pHv76-0003wY-Uu for qemu-devel@nongnu.org; Tue, 17 Jan 2023 18:11:32 -0500 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHv74-0001Tv-1G for qemu-devel@nongnu.org; Tue, 17 Jan 2023 18:11:31 -0500 Received: by mail-pg1-x52b.google.com with SMTP id g68so22099206pgc.11 for ; Tue, 17 Jan 2023 15:11:29 -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=PwXkaDD20Cfx8f1Iebsx9a3a6LNR85MdarseuO3nHWc=; b=Be5ivDxAAp/cJ2hHmyLfG52eJufNvFtbVdTHai2XV9Fy+XoMkutDoVCuTmg7wR7BK/ u0X55tEXa3fwCVJLmBAr2cALULq4VBxt4Nd/rvqmxyF3WW4QN9DdDrXbeKFRMHzyWLFq ah4bDdLIOvOM2rYvbqO0ajtgs9thICjfZaBUSUgMVt+vd8Zm2zUboZ0F+aUYVww0h4sT ySe+5u0aB6RYT7Vtv5u3LOjveZ8iPPEULiiYg7YsGHQtYHqs64JDm9GbQXxXme+yGmgY M4xfT0w0725cS0WV8dW7QCbigPUKfR/OWzSPsoAe241KdwJB5bQIGA0SMiro/A9oQYDL ED0A== 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=PwXkaDD20Cfx8f1Iebsx9a3a6LNR85MdarseuO3nHWc=; b=4B1Hh2U0yunU1a8E02Mv09j6Lt4N7rtUk4J+ivZdWAgv/v0xR2Mr997brHREQ5i3JP LFHJRMzjZx9BrLJpXMH6NwBsgdtNwmcBvE/3uLnA+srscRe62HNHoJrYXTEZ96QTJrAH 8od639t2c3HrhhExyK7RK2nJCdlfAzbtqNYkrXStcMHR+LolaE2VzAqKDNpvrrV35bXE h5lBFno0xkx969segWQI5hMHTdw7zSrZjBlU2v77zmAjNq48FQ7MKP4tTc7w9PEkQDsF penZA3vbZD9AU4RgYk8m/ygtU/d6Da5VUGcrXjsyojNpx0jN8bLOKdo69XLYbpx/rIy5 yQbg== X-Gm-Message-State: AFqh2kpTA8t2meK0+WRg/QAaiEQLV2oFn9myd/5uKilE36ElKiLClMuO P+6VVfaMyf9WZQhvVQ/wBabIMuNHshdaQ77x X-Received: by 2002:a62:5341:0:b0:57f:c170:dc6 with SMTP id h62-20020a625341000000b0057fc1700dc6mr4170516pfb.14.1673997088838; Tue, 17 Jan 2023 15:11:28 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id b193-20020a621bca000000b005810c4286d6sm20747070pfb.0.2023.01.17.15.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 15:11:28 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= Subject: [PULL 21/22] tcg/riscv: Introduce OPC_NOP Date: Tue, 17 Jan 2023 13:10:50 -1000 Message-Id: <20230117231051.354444-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230117231051.354444-1-richard.henderson@linaro.org> References: <20230117231051.354444-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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; } }