From patchwork Thu Mar 11 14:39:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 397489 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp377198jai; Thu, 11 Mar 2021 06:47:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOEDE7GB+H03yQKLbEFXE94ODvsyi9FJV0O/8MW9yaXxA0PQ5A6Nmrl/9j8zcuOTQmq4dJ X-Received: by 2002:a67:f549:: with SMTP id z9mr5303228vsn.55.1615474041010; Thu, 11 Mar 2021 06:47:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615474041; cv=none; d=google.com; s=arc-20160816; b=oLuMtqwkRRguPoMbvtgCvCKcdX4pbsAQ1lOCXfP70b3p5HYOIH+g6W2XbxX2OWS/gh 3AM3v9waGYvuTFrZbns4sZ4UViQSo51dukqcQDWoEmWtJ09JeykQ/z2/Qd4llQWbiTMB jXwqZz9tQ4hzV9VZJiuRR3Zbc87nLmk8G1Y70mml4QxcpJLixg+CVL6gUASzRtenI4Ld ErXF/uwhNtAWHVP4gV2Kcv+cxrkuY5P4QJwM5Ii/VjuLH7VpY9FC4PLevreS8JG305sr H++SQl6LtaFERzB6A33Dse43oWFYvdebcRrPW3kH7gAcbUkTfVKM6yevvHV/7X25JJGZ 0sKQ== 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=9Vh7s6UroDOBSVmOQabkt7Snkgw14XUdmLA5IgFSZHM=; b=mMlycn+L4U+QW/ZRSNoDpPHveRfCXLupsEnpHWoVB22JMPnsxT+MFnulXUE3r1P1Ii IsCxceCgVtr/OxQTB/M7L7K3EQd2ICtIBQPjcMFuMOWV7zES7pZ2a76XIPqZeb6s8dQt 37PFxK9Jb74lN5Mz6kzpaFNcT0IF05h88+w063uku2b7z02x5dabFVoKQCfcBtRd11we P8ue7aixXMKfDtb6nineXD4L91xGTCGC1RryZTMO242C5zbbw+O88UV/YDZ5XtHiuiLl kGLADPJR+Ex+43iTS2GaHZAqPJ8WBWlGSWuIpaFK48XRg3AbT/nJ+JeDJMgNhczgdUXP KD4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vPz6sr4t; 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 f14si459318vsa.222.2021.03.11.06.47.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Mar 2021 06:47:21 -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=vPz6sr4t; 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]:59206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKMau-0002Yc-2X for patch@linaro.org; Thu, 11 Mar 2021 09:47:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKMUB-0003IV-Pn for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:40:23 -0500 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:45022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKMU6-0006I2-0P for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:40:23 -0500 Received: by mail-qk1-x731.google.com with SMTP id 130so20748595qkh.11 for ; Thu, 11 Mar 2021 06:40:14 -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=9Vh7s6UroDOBSVmOQabkt7Snkgw14XUdmLA5IgFSZHM=; b=vPz6sr4tsse06jHrHUvPJ2qtk2vcx9puREW2YrQqqK74fltO4BBEJL8CSbUX8/df3h aAjEm9SU3N3UcztnWSCugFYTMp2IANUjXV4MvUjq4lojw7QbcPLETOOpn/XmYwyu4Ou1 o71ZyVAEt1j0bAMhgj1WOBGqAnCCsZINKPmbNhcu0ByLDop+CJwAklci0B6Mm9f0zC/C L6e/e1hqiI+D+BaVHbfwG/x2zjYX5VLI+upq0fOFgKts6hurIRvoxjIVgJUY+RgQUXAJ T+0Ra2wn+JLa23JhW2ad1w2EJEyH6Mf5WAdHzCRlHmxstKEOEIqjueTu4LGiX019M8/Q hDkg== 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=9Vh7s6UroDOBSVmOQabkt7Snkgw14XUdmLA5IgFSZHM=; b=k3fuhA7v4NO4FguGEBZo1nIyW12Mts3HPOwacDPVcrGvY2Et38A+Nwx35jqqZMyz7D Bp8IMRQzUlf0/O9gXJ4dRlOu3r0xqKz7h1G4ohTMkwuZjDOBlPQGn38/4by9nwJUs8d6 zaiU6H9etpPFtSfPv1S77DEJizKAKEGvjO4ltNpBnkeHbaTiGCaEz0JS113m0r0dvSYJ Ifrq+SmQdcoiGyaf9jg4fPDf9qwQwF+C/ab6XnUJHZXX//y51gU9JiKX2lbOtAcvDH4F 8lUpTjoMkzqGZ4Ty/LGeNzX3HwB7HFB1KSOXVeo9WiynhU8mrxaJWDRgM4eKibJ0qcEb p/cw== X-Gm-Message-State: AOAM532g8VxRaKWXQkwRYahlkrWtqK8T3VxrtAqK3tcpfSLuB97Kq6e7 FKwzlaVUfSDok6HR2Vnocd46VVmsTh9Z27nv X-Received: by 2002:a37:30f:: with SMTP id 15mr8049887qkd.494.1615473613577; Thu, 11 Mar 2021 06:40:13 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id d84sm2070324qke.53.2021.03.11.06.40.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 06:40:13 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 11/57] tcg/tci: Reuse tci_args_l for calls. Date: Thu, 11 Mar 2021 08:39:12 -0600 Message-Id: <20210311143958.562625-12-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.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/tcg/tci.c b/tcg/tci.c index cfbe039fa6..066e27b492 100644 --- a/tcg/tci.c +++ b/tcg/tci.c @@ -435,30 +435,30 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState *env, switch (opc) { case INDEX_op_call: - t0 = tci_read_i(&tb_ptr); + tci_args_l(&tb_ptr, &ptr); tci_tb_ptr = (uintptr_t)tb_ptr; #if TCG_TARGET_REG_BITS == 32 - tmp64 = ((helper_function)t0)(tci_read_reg(regs, TCG_REG_R0), - tci_read_reg(regs, TCG_REG_R1), - tci_read_reg(regs, TCG_REG_R2), - tci_read_reg(regs, TCG_REG_R3), - tci_read_reg(regs, TCG_REG_R4), - tci_read_reg(regs, TCG_REG_R5), - tci_read_reg(regs, TCG_REG_R6), - tci_read_reg(regs, TCG_REG_R7), - tci_read_reg(regs, TCG_REG_R8), - tci_read_reg(regs, TCG_REG_R9), - tci_read_reg(regs, TCG_REG_R10), - tci_read_reg(regs, TCG_REG_R11)); + tmp64 = ((helper_function)ptr)(tci_read_reg(regs, TCG_REG_R0), + tci_read_reg(regs, TCG_REG_R1), + tci_read_reg(regs, TCG_REG_R2), + tci_read_reg(regs, TCG_REG_R3), + tci_read_reg(regs, TCG_REG_R4), + tci_read_reg(regs, TCG_REG_R5), + tci_read_reg(regs, TCG_REG_R6), + tci_read_reg(regs, TCG_REG_R7), + tci_read_reg(regs, TCG_REG_R8), + tci_read_reg(regs, TCG_REG_R9), + tci_read_reg(regs, TCG_REG_R10), + tci_read_reg(regs, TCG_REG_R11)); tci_write_reg(regs, TCG_REG_R0, tmp64); tci_write_reg(regs, TCG_REG_R1, tmp64 >> 32); #else - tmp64 = ((helper_function)t0)(tci_read_reg(regs, TCG_REG_R0), - tci_read_reg(regs, TCG_REG_R1), - tci_read_reg(regs, TCG_REG_R2), - tci_read_reg(regs, TCG_REG_R3), - tci_read_reg(regs, TCG_REG_R4), - tci_read_reg(regs, TCG_REG_R5)); + tmp64 = ((helper_function)ptr)(tci_read_reg(regs, TCG_REG_R0), + tci_read_reg(regs, TCG_REG_R1), + tci_read_reg(regs, TCG_REG_R2), + tci_read_reg(regs, TCG_REG_R3), + tci_read_reg(regs, TCG_REG_R4), + tci_read_reg(regs, TCG_REG_R5)); tci_write_reg(regs, TCG_REG_R0, tmp64); #endif break;