From patchwork Mon Feb 8 02:37:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 378496 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4335374jah; Sun, 7 Feb 2021 19:35:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwznKp+sELL8RIJulnNkUovTrKL1svXIGv9eQiXCHMO1GW5Rtbicqj17vUSGu15FyOz5zS7 X-Received: by 2002:a25:ce4b:: with SMTP id x72mr23030104ybe.386.1612755344332; Sun, 07 Feb 2021 19:35:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612755344; cv=none; d=google.com; s=arc-20160816; b=ceU4Z8OAG9QWUItePMCX5s/Sc3BDl18iLxIbX2TDwEKSyzTXfIg7hjYeAgUz2+GIfV oYbggpsZ2rartkFn6sddJ3uyFyGUtk78pCkjhmnYeAowUdXEiwGD/R53bNU1TX+ZDaGd 1gS5yjNd3Hr3LJX+BweCFnDo22I792ibM2Xp9uSgQ42W2QmK9c9mEENS8cFFUtR1wqb/ MyxuR+8effAe7riXycf0uCIHf5bfNj4YuxnN+OXjFd0zFA11oXq/Bqm9lkqSCCczYeq7 ird8+3JLtexw51NZpme7ejPXQDZPmIkAekuIx2U3G4ux+1SCOq8pOVxi13zXXMdOiaWi DtQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=Vq4qc1b2g43xbe/29EXgve4/dpXJMnCEHSHrRl9cyeE=; b=IFPKUOWMu/7w62R7MZ2HM/9EAzFunFOEl8MewHPqiT2vYYT2n0ghPd5T4HvOnl/hHM G299AaXODs+rGV9SxmdNFTFRXDHXjUHQgLWtVwVgUynxdtSxp3kEYRlfH6UmUg9mAsws jy+RUwFhWGA6mqXZc2zM9qqo1rQnhXfxLvyHWeOu0RqxSxccNqaZGBqwr6/pD8WpO+H9 yp7FkpE4hdmCfxq4XMc+2F+aU2Erqqpty+sIyvbfnTN337eYO8GLq/Obuza0w5v9yFiw 4HBn++EPuxAUfJwlNpEzIh4NRQ0z9YbZxKQCryu2vxXJUWYLE+54SNjNRfQF1NgdA4e6 sN/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JVLC2Evw; 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 b64si15964469ybh.32.2021.02.07.19.35.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Feb 2021 19:35:44 -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=JVLC2Evw; 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]:43734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8xKx-0001Ks-RQ for patch@linaro.org; Sun, 07 Feb 2021 22:35:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8wSb-0002mA-IJ for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:33 -0500 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:34473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8wSZ-0006B2-Np for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:33 -0500 Received: by mail-pg1-x52e.google.com with SMTP id o7so9281010pgl.1 for ; Sun, 07 Feb 2021 18:39:31 -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=Vq4qc1b2g43xbe/29EXgve4/dpXJMnCEHSHrRl9cyeE=; b=JVLC2Evw6JTNjhTyyD3CW2z14lp8kWPgrfuvfDGTZUF3+hSG32IX6MdZSWt8StKZeG z3mzooH2DnS3gAbGk35oHzADgwSBLowO/u7PNWeN2wpPwk+b7rEAZL2isVg7SMiZ8wDH ejyqb6Z/ILlYiL7kxTQQXP5pK3+Hk4corSDDzUJ0ZqVy2C+klj95MWXgYRPK2uwHIdQW +E2OblQVq9COyZvdHxFTzlb3lDdTrEw9+8vMKVYtdqZQoW/K3cR0aiJIyKAUh9uMzjqV 3KGKftSihXab5Hx2+94eF/sYu4X0VocCOQQGMWpram8AWyN/9gmF4ByADsBXm0OabUr6 zfhA== 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=Vq4qc1b2g43xbe/29EXgve4/dpXJMnCEHSHrRl9cyeE=; b=tpx17B6/kC1ikMfqA2+NAbdnvGOXZI4f6zNQprE9XjHKvuckWQKafdK18nLc5nnqf4 9tEXnVdCGaPDA9vK204sxHYU5V4y3Ksdm5xwWokt+Kd/B5cg30zf+ITxGyrudtIremsM SYGQrslGDZKZVwPEaasnJzpAtrOMnM5PrJHiZZfm28ztflwoADylTHaRUS164qIkp+96 fZjVwLGMqxQVqM57pNr/rqKKwoTRWeV2dcfnKjmT79amBcKVxttjArnHvmdBKf3Z0KMd yj/XsO3iVEXYaHrM593F10oS0WrcT/dY3iAR5HpmmdXBU/XAjONyAWZG9lQzz12Qymyo /nSQ== X-Gm-Message-State: AOAM533FdahV/M9/8iRMIaV9a74ND9eTWoa8QLSA5Z34U+arJ8983iPK JnGKV1rcXUu8FXaWpLF1cLfLRLKHAcl1Ww== X-Received: by 2002:a62:35c6:0:b029:1ba:e795:d20e with SMTP id c189-20020a6235c60000b02901bae795d20emr15478017pfa.37.1612751970410; Sun, 07 Feb 2021 18:39:30 -0800 (PST) Received: from localhost.localdomain (174-21-150-71.tukw.qwest.net. [174.21.150.71]) by smtp.gmail.com with ESMTPSA id 74sm650954pfw.53.2021.02.07.18.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 18:39:29 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 55/70] tcg/tci: Split out tcg_out_op_v Date: Sun, 7 Feb 2021 18:37:37 -0800 Message-Id: <20210208023752.270606-56-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210208023752.270606-1-richard.henderson@linaro.org> References: <20210208023752.270606-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52e.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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.c.inc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index f93772f01f..eeafec6d44 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -303,6 +303,15 @@ static void tcg_out_op_p(TCGContext *s, TCGOpcode op, void *p0) old_code_ptr[1] = s->code_ptr - old_code_ptr; } +static void tcg_out_op_v(TCGContext *s, TCGOpcode op) +{ + uint8_t *old_code_ptr = s->code_ptr; + + tcg_out_op_t(s, op); + + old_code_ptr[1] = s->code_ptr - old_code_ptr; +} + static void tcg_out_op_rr(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r1) { uint8_t *old_code_ptr = s->code_ptr; @@ -587,8 +596,6 @@ static void tcg_out_call(TCGContext *s, const tcg_insn_unit *arg) static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, const int *const_args) { - uint8_t *old_code_ptr = s->code_ptr; - switch (opc) { case INDEX_op_exit_tb: tcg_out_op_p(s, opc, (void *)args[0]); @@ -725,8 +732,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, break; case INDEX_op_mb: - tcg_out_op_t(s, opc); - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_v(s, opc); break; case INDEX_op_mov_i32: /* Always emitted via tcg_out_mov. */