From patchwork Thu Mar 11 14:39:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 397522 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp393702jai; Thu, 11 Mar 2021 07:07:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRP7ykZ+q+cpcBnHGxexPTI2JKFK8KHWYP1IdT9GrNlpQza+iUeoRBzYlXtcatFLc7ndt3 X-Received: by 2002:a37:392:: with SMTP id 140mr7884244qkd.236.1615475253723; Thu, 11 Mar 2021 07:07:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615475253; cv=none; d=google.com; s=arc-20160816; b=yM8bdCSyt6QVeBZoVi0NVpE9QUNb04RIY34XoBlc0epVBTXahCp0lxFPkVNafDbL80 8Fpb1T9LZ4hGQsd/eOv7KPg7EWxOToD/vTftsfu00TL8wfJbAFYhgK/0NCMWkuTsIKk7 eeZBqAIyJD7AYdlj9AH/0WvNxRkMbZt1W460J43D+2xUkTGNpcpjViIupoi71/Kb//Kp PkkyZzDmIGqax6a8ICNhuehmIWqqhyuEkMvnU5upnS10qU3EZlejgOfbeqf6QQMCEXHH 14CqSj+a8TIqTqdPj0q24PdhBbNG15QS0qvJoT0/AaCXUjh0yvmxtAWrNgLMeVUyQe8a I6ww== 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=0O5QuaY9WX3f4gtO1/HIxg5c4x+Z7gZSetQAsTBEjXAFD/wKtLqIEDBJEJFVSooL2L naxXrC1fCQLUV61HDIpNUCOmHHATb8e15vuXI+m+H8FjB+f4BLhVAVzOuxfy5KacpAeg eyZt7R2J2CGVEYFD/bAy9QebTDEUqAbGI3Jana56QAjleOGfRT2lVVc7+cMTD6G1G2ip WxheAGKaQZni/SYal4I8Hiqo7N04HH0MjzSxQmFJBSITFgjysaLzNEQ6Lgz1jg/9Y9Nv Oafqxv6QTZ+e5yUCbmzP07G/3S6OCc1hOBefnwK/NJT6pMdKucRHAHpEtOni5V4nWu4F 9SqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=tJwvSENX; 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 i4si497952vsm.318.2021.03.11.07.07.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Mar 2021 07:07:33 -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=tJwvSENX; 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]:46900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKMuT-0000QV-3R for patch@linaro.org; Thu, 11 Mar 2021 10:07:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKMVJ-00040x-IB for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:33 -0500 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:34288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKMVD-0006r4-3G for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:33 -0500 Received: by mail-qk1-x731.google.com with SMTP id t4so20837627qkp.1 for ; 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=Vq4qc1b2g43xbe/29EXgve4/dpXJMnCEHSHrRl9cyeE=; b=tJwvSENXfrQRrZ8UA2FCvtI8YpUn6s52jZ5OjF9+sof/kWpOkTcRkMOvFxljP57S8S SKbfA0Etd38nMvfD4cA8HqhdmsI/HjX1MA95UircdeUBd5ehcq9SYOdAH+NVivjhrgUw BRvsUYPtYcaQaaTiwKbUvQBmiD+xpiSMLSA7ySIfZSgbZjV7ZRvcvHcfk09J7lauLC/h n3R1EGNDvPqWCr1omMZ3dsTBVARVZiDHy1z6JH/mGchOdH17ceb8n+J9E3mAIs4Z5pm7 MYLkPYtH/zRIYSPNzwlxHYP0h23VpMA5ubjPlhoQfPBhtS0bS65jbg9mFG2Mkf7Iy24T ZPdA== 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=mtJGBs+HD6TIGhnu5OWU5boTSYRMnTIy64yKbIiR7wJ5vkN5JrDozAihZp5TZPNpLN V8Djtn3Irf31+k3er5tSFhO97e39qcayuFGu/01GA6bsX0qwzSG7i7ydK+U6+If/xQeH ehyjxFnhizZd7EDrFZJswCI2BQOUlJHkQd2m25hvHnu7xoilKxG1uycIe5EHcAMYzVyx j/AkO1YOoadnO6snCwnmPOmO81XZqR2KM8vd+1wo9YqUoPVvLKRXF+CxBnrpbmRECTQx FsCpT+QqyJAN+1PYNwM7lKS2gu1+Qb0z4IZStBgoBkzEZRv3oskInpJl0JG4uztBBj+9 ba3w== X-Gm-Message-State: AOAM532yErjwOJVSjmBDAiHD8B5UXoiRsb+NqQK/AIFdkPOQzqgQ9uir I2wcnnQz8Dr+OejareaDtOhe/8tGjATroOyK X-Received: by 2002:a05:620a:914:: with SMTP id v20mr7976624qkv.140.1615473685676; Thu, 11 Mar 2021 06:41:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 06:41:25 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 40/57] tcg/tci: Split out tcg_out_op_v Date: Thu, 11 Mar 2021 08:39:41 -0600 Message-Id: <20210311143958.562625-41-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x731.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 | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé 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. */