From nobody Wed Feb 11 00:58:57 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1615475457; cv=none; d=zohomail.com; s=zohoarc; b=AVYGgSFR1XhiLP4d8wfqAof3cFA6CLjFhJkEqkQ7rjnke1nyFLkc3WF0ukN91f4hBxV2p9c2hGK5zucs5Tcrqn14/F5DGncH4iJlyQFT2V9ABf05SKKFQCp9RcT8yRm4+4IoTzJTqG8mqYDSwyYoaIs7UPPXbj7Xv80nzlI90Rk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615475457; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kQwYPaxcLPGVIBaZFpt4Ukjta9EglPQhHZw+11ye7O8=; b=TY9R6/ntPwkitfg0in2RNbslLXs0mTc/IRf2V77Vw/Ul6M1Zm4MiIBdur58xVoftH3ty3C++faHBMVAGdLTMClD6V9aZCoTiR+rW/ZXYQacUqPE013dUaFD6XghPU9VbLdFv45yE/Oha8UICVvWWiQQNZ7u7ukX89RHTjr+1jLM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1615475457754486.496209871706; Thu, 11 Mar 2021 07:10:57 -0800 (PST) Received: from localhost ([::1]:59602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKMxk-0005lb-Q2 for importer@patchew.org; Thu, 11 Mar 2021 10:10:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKMVJ-000416-K8 for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:33 -0500 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:46036) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKMVD-0006ri-Lj for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:33 -0500 Received: by mail-qv1-xf2f.google.com with SMTP id t16so2632708qvr.12 for ; Thu, 11 Mar 2021 06:41:27 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id g14sm1962421qkm.98.2021.03.11.06.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 06:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kQwYPaxcLPGVIBaZFpt4Ukjta9EglPQhHZw+11ye7O8=; b=hM5ir3Pb6N4yNI2AUagTzdwa+SLromBoBNfeCrFrNXoblUKXFY7C5c3eKY6ufNk/0/ mJnx57ZfcWRG1PJFamrtEf+M0qSjDcTl+2IvKMtS+zhB0BKTM/LGtbFZjE9nfLy4cus+ KkH8pDSkM6uUWglhP4HGQvKbt1usQ1yY2yxnGMowU+YGjN7l0iSobuWs5kG6L86ouZ6r 6/Ib7VWBs66QnG8R3Vv8hSE6kId2UF6SpKIhh6oWU1k5uWY493XjAL6ETXDuh53aIni4 8LJAPGQAQ6dg+kySPzZharMMi9VwzgfdH4iyNW4v0FwW5XEptWz52Mqk+BXK8P77B4Ie q1Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kQwYPaxcLPGVIBaZFpt4Ukjta9EglPQhHZw+11ye7O8=; b=r6MgLp/jkBquZZb4mjKf5Trk2zI9eGP3N34FsXf+723+8TSjeggyOEh0MrvTpVPE7Q WarTxKDV+0gmSWOg5KfzXxCdLOzmeKw1Ukatf13PWUjEhVlzDXxgyMa2mlHkty/SYVc3 qX6+yRq/NgPNRorDUETiaFYcfhRNOdvjGxpflU58En2wI+syYLa0DvVCP4Qh+U8xzbX2 kdgsp8NjtkbwD59/6N9w1ffT2ocXkKatWSZa3k521GDYaSHJ066oE9RYhA3sS8oX5fwp 3xhBieq3tkciiBYPHMUPtLNRQJVUpOiG/gxVti9lBzDHRfNqeDcEdEvDu3vQ4cbzySeV 6A1g== X-Gm-Message-State: AOAM532qCIZI69wlxrXvkahNMlKNJ6hZ2V6Ch+IxW7uhNsa0NRXTHUDS j3YeSQ8tRTBMltJy93+c/p1qjrsuuSBZituM X-Google-Smtp-Source: ABdhPJzQdt+FsUJvZUR5VoSV07zdqdecLRWUb1jmOoWOk4g+Tnuw6PMAzNOrnYJRCEhR05+8J9yJdg== X-Received: by 2002:a0c:c1cc:: with SMTP id v12mr7716706qvh.47.1615473686763; Thu, 11 Mar 2021 06:41:26 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 41/57] tcg/tci: Split out tcg_out_op_np Date: Thu, 11 Mar 2021 08:39:42 -0600 Message-Id: <20210311143958.562625-42-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210311143958.562625-1-richard.henderson@linaro.org> References: <20210311143958.562625-1-richard.henderson@linaro.org> 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::f2f; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf2f.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sw@weilnetz.de, alex.bennee@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tcg/tci/tcg-target.c.inc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index eeafec6d44..e4a5872b2a 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -312,6 +312,18 @@ static void tcg_out_op_v(TCGContext *s, TCGOpcode op) old_code_ptr[1] =3D s->code_ptr - old_code_ptr; } =20 +static void tcg_out_op_np(TCGContext *s, TCGOpcode op, + uint8_t n0, const void *p1) +{ + uint8_t *old_code_ptr =3D s->code_ptr; + + tcg_out_op_t(s, op); + tcg_out8(s, n0); + tcg_out_i(s, (uintptr_t)p1); + + old_code_ptr[1] =3D s->code_ptr - old_code_ptr; +} + static void tcg_out_op_rr(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r= 1) { uint8_t *old_code_ptr =3D s->code_ptr; @@ -561,7 +573,6 @@ static void tcg_out_movi(TCGContext *s, TCGType type, =20 static void tcg_out_call(TCGContext *s, const tcg_insn_unit *arg) { - uint8_t *old_code_ptr =3D s->code_ptr; const TCGHelperInfo *info; uint8_t which; =20 @@ -574,11 +585,8 @@ static void tcg_out_call(TCGContext *s, const tcg_insn= _unit *arg) tcg_debug_assert(info->cif->rtype->size =3D=3D 8); which =3D 2; } - tcg_out_op_t(s, INDEX_op_call); - tcg_out8(s, which); - tcg_out_i(s, (uintptr_t)info); =20 - old_code_ptr[1] =3D s->code_ptr - old_code_ptr; + tcg_out_op_np(s, INDEX_op_call, which, info); } =20 #if TCG_TARGET_REG_BITS =3D=3D 64 --=20 2.25.1