From patchwork Wed Feb 17 20:20:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 383903 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3138024jao; Wed, 17 Feb 2021 13:11:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmLn+lLWiHcxVpsbpdqE6GPx7F8Zjf8YXeHlj/ECNhdQcztzW5mZzTtDePdcXgTCzkHmVN X-Received: by 2002:a25:21d4:: with SMTP id h203mr1866018ybh.290.1613596291069; Wed, 17 Feb 2021 13:11:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613596291; cv=none; d=google.com; s=arc-20160816; b=AU6roHYIiqdNyZKeyoSlF3VipCEo4wdEx1RMloIMFFnTDWYjaHUVALPZHI5hRgRtkU HufWrodk8MQiAdu4Yim2wOAL/8er5/Y4zf6smxjNGX9jriSIXULrSN5dOGnjwNTTCEwz B4W6tBRO2U+p4BF2IumCf1cRIqwADMq2InlRIhnxhfAeYhJ7lwuantu6Hy9rnEBtfhWP RX7NTk49Cn+n5z4gWLh7khvy4jOFa/UnYA4DYbBvopMp7u8g1dGh6+PsNxaz+A1yb63+ UEyfOaodFlewLANX9Xlaei5XjHbZh2nl3wakWrzVQsUrQiEN/ixq82hLtRQdZtPym67N B3+A== 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=RzFAVc3cWW3yr0pGO36GqM64ymG+VJfs9mt8bjfFgIQ=; b=JFMGZqtoSy8o0oq/FTjyw/f7o7q7o5J6GAHpiIuL0x4FnpMxltMv/ZVfNPJlLmhOaE g8/uKWmS4l0SJDO/Mt16LFPMtIW+9D0f33OCTkS0po9Lpl2JC4tJFYX294hhK13/jgJa u7+PfH4yGczRk+I9b1tMXWt0D2XgCnryWSivy+mBq3WmMP4z5mLc8WmvUQkwOpt1VUCU sSHvM5YUke+1mKbHuR2nl2m0W7eCqInhVCVRyxR8yLkW1Bp6PwpGdZWC/h95hA3b4C16 mN3QypnA4+4VCjVbs2EbXghJfvDznlNv+SVwzXThL7+UP1VA0zUc+QNyjQFCzDeqtjKr yZeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Vhbggrpp; 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=fail (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 h6si3916882ybo.297.2021.02.17.13.11.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Feb 2021 13:11:31 -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=fail header.i=@linaro.org header.s=google header.b=Vhbggrpp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCU6c-0007PV-HB for patch@linaro.org; Wed, 17 Feb 2021 16:11:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCTMX-0001Bp-6b for qemu-devel@nongnu.org; Wed, 17 Feb 2021 15:23:53 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:50472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCTMV-0007dF-KL for qemu-devel@nongnu.org; Wed, 17 Feb 2021 15:23:52 -0500 Received: by mail-pj1-x1032.google.com with SMTP id cl8so2153109pjb.0 for ; Wed, 17 Feb 2021 12:23:51 -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=RzFAVc3cWW3yr0pGO36GqM64ymG+VJfs9mt8bjfFgIQ=; b=VhbggrppflsZjzAuM1zhjdtndIJqk9zecFP2kBash6OLagSrTzKfpr1mYEwxn89Xhp 6fhsSrYJ14L/tJLtuRLMWEip42AoDHmyuX9uFwhqlxfnnCDegQaRpLifmNUM7eazQczV I6WZkhK5pK5Zw5Iz8sgaViP9VsWHmqEiLuiDmHED1IcVUI1ADIKpeEjMO7gspRzFtjJ2 XfFZ6eX13DfZK8dyVP6W2Gicu1yhB+XE/Vx3aMBFWW4DtPhxw6ZpPv3p0mruQdyqnrmO sYbRJz+n0RdmbSnBCE8LVRwHX4F2SyR229wIbTZ0IuZvVwRubHTStZ4g1GBsIzUPg5zQ F2Sg== 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=RzFAVc3cWW3yr0pGO36GqM64ymG+VJfs9mt8bjfFgIQ=; b=Fw71PJ41QDc4GLXejnVcIBC4wFkpWTwyNmIo19pLauGheoaMnffUlRzEB3r96c4WgZ 7UGdBI/jVLmJO4YkMpujZRpnUhkH3MG4pxrlfIoOebEQ3ONzYlfx+QF00RmwOyiR6Kac wABB4NVInnCnhvZsC2yU4/ukhZqcfbeTuEww5BZ7LvdiCz/mwxVnDw6Lp+ZBaOrR6evK FmUGczLN3n6qlZHYSXooOmZfbRk5bS6oBun0o1XvruaTg0sXTuX3igygdpp9h3ji/EHy 6wb7E2mqiMLFEjpEb/uh23G433AndufuQLVIG7Kt5jTU6wA9M1kqeOxXl0rrd79oOFky na2Q== X-Gm-Message-State: AOAM5328KXqIoW7ayNyJ07y5pcA7Y0ArdYtsS5VN20VAudRxuMYiru/G 8YUtFuUlKCBoUGFyQvjUWXpp5s7Ot6Cdyg== X-Received: by 2002:a17:902:b009:b029:e3:6915:5475 with SMTP id o9-20020a170902b009b02900e369155475mr980412plr.34.1613593430386; Wed, 17 Feb 2021 12:23:50 -0800 (PST) Received: from localhost.localdomain (047-051-160-125.biz.spectrum.com. [47.51.160.125]) by smtp.gmail.com with ESMTPSA id v126sm3232038pfv.163.2021.02.17.12.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 12:23:49 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 46/71] tcg/tci: Split out tcg_out_op_rrr Date: Wed, 17 Feb 2021 12:20:11 -0800 Message-Id: <20210217202036.1724901-47-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210217202036.1724901-1-richard.henderson@linaro.org> References: <20210217202036.1724901-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.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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.c.inc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) -- 2.25.1 diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 272e3ca70b..546424c2bd 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -314,6 +314,19 @@ static void tcg_out_op_rr(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r1) old_code_ptr[1] = s->code_ptr - old_code_ptr; } +static void tcg_out_op_rrr(TCGContext *s, TCGOpcode op, + TCGReg r0, TCGReg r1, TCGReg r2) +{ + uint8_t *old_code_ptr = s->code_ptr; + + tcg_out_op_t(s, op); + tcg_out_r(s, r0); + tcg_out_r(s, r1); + tcg_out_r(s, r2); + + old_code_ptr[1] = s->code_ptr - old_code_ptr; +} + static void tcg_out_op_rrs(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r1, intptr_t i2) { @@ -500,11 +513,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, CASE_32_64(divu) /* Optional (TCG_TARGET_HAS_div_*). */ CASE_32_64(rem) /* Optional (TCG_TARGET_HAS_div_*). */ CASE_32_64(remu) /* Optional (TCG_TARGET_HAS_div_*). */ - tcg_out_op_t(s, opc); - tcg_out_r(s, args[0]); - tcg_out_r(s, args[1]); - tcg_out_r(s, args[2]); - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_rrr(s, opc, args[0], args[1], args[2]); break; CASE_32_64(deposit) /* Optional (TCG_TARGET_HAS_deposit_*). */