Message ID | 20210208023752.270606-45-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4323841jah; Sun, 7 Feb 2021 19:12:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyj7mXWucNa98AV9kaMa4KYQp39wofqpWla0jDYHoKylTprc6HkC7QRa1KTEbDYAfw8gRv X-Received: by 2002:a25:d150:: with SMTP id i77mr24517010ybg.55.1612753952862; Sun, 07 Feb 2021 19:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612753952; cv=none; d=google.com; s=arc-20160816; b=QQKy55KW0nic7y5AEzvjpGLIHv6KSbNS+UT4QSn94O9ylwW3CFy0tJfDHeSicIgz54 dTozPzJL6KGmYaB0bQ9D+Gjy8b4dMGNMkqJOamkjeWMAcwrbR3V6Dq4a/G9av78Ff1+u P/BkiBrSc7sD29ZI4iqz+J9dZDRmGHQpV/oi0UFcW0tjgD65ieW8qTTh2VBfH9EzLXsx 59PXNG+e3mluIhgao3rh93uz/MoV4dARJEBsSzD+DBb5LK2JC8UIQpFo8rsihV4G29Tx CKKgGdfGpNPbBzDvrTPmkRR7FRw0uGV8TI9mI0vyg0H6uj18QyBlBqj1WXofNo0UY+b0 9bUA== 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=06Y+cyMxl+dC1AQMaIsueXy7S/PiohsOvXqBqGkx3uw=; b=Hcdu6X+rj/CFnb/xGi+Q4BTkwfwzWFP2ZtLKfZXmLUxICPMSizjLBgja/o6rrYamgZ mc6sNdaPzIRLkMt8Jbwjzo71KJFKNDNM2RMFowAAAchY5NisPe0aNIreot/y7hC+BLeQ Bv0HSjnxiMfFAd1IuYwAm+VAcIwyrzkiUBvBy/4baytl1hIDC2ivVXOL1CLy3UneUsZq 6YQybSVCJ0cQFCm+O/Y/nxxp5e0DTS0MccxzcZizsTP80BhTjsnTSvROlagk+8s9mRxE srucUYUG2WpyqpacUNHlybBKozaqF1ix4xmh7Eg9VsQYwG4O9eSLmVax8JG/fAA/Iw9m BejA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rXxC+wdq; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z7si15486925ybo.190.2021.02.07.19.12.32 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Feb 2021 19:12:32 -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=rXxC+wdq; 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]:53610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1l8wyW-0004Hx-Ah for patch@linaro.org; Sun, 07 Feb 2021 22:12:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1l8wSP-0002ON-6J for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:21 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:40859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1l8wSN-00066f-FU for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:20 -0500 Received: by mail-pl1-x631.google.com with SMTP id y10so7020166plk.7 for <qemu-devel@nongnu.org>; Sun, 07 Feb 2021 18:39:19 -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=06Y+cyMxl+dC1AQMaIsueXy7S/PiohsOvXqBqGkx3uw=; b=rXxC+wdq/sBJHlDndYVHNKoZkRxYVRDWJJ7FUhJiMWjXvg74TxD3BeIVSqZYMI4Qet ujRlU/7L+ErrbIZNE0vMWGPZG3nyevzDo3L0u0+0K1ohTJUMtlRjL772D/YTH/Sini7J JXj1mZ9b6Sh3uPyUE2KgSNUFfGUW3LMkDTw9lM/cHgxl5ipINx9IfdFlQMQd0W8bGEK5 Z++tb4ixlarIu//tY83k0nnGxS3zjzD3dPjaV29OtHHXgQyqHt8sYctvui1BQdTJwbUD MwuHeawJ27Xb2+sR4Hf7D72zuV8738bljUTnIb8vCVB55GVB/WJtQqd+rwEiXlFPEu1V anqw== 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=06Y+cyMxl+dC1AQMaIsueXy7S/PiohsOvXqBqGkx3uw=; b=VxD9OrhQieXfXiBSX3/KxOqllhepSf5hs55SiPax9xggK8Ej6UrqNYptsQs2Y+ZDXi OTQMUGZH4uKfF7UjawGDZzkVOibn1ptggRyhicujM1WA+R4uSZI4FFhJZ/swDqKtvmPd b/G05O7KsWmUXIggGwSqwcIkcxzYNVbS53qohn7tDsZdJW7QFl5TXqQnJKhVwywAdJic OhtdPn4hPgMrJbQBcOAgyMlTS6SIFYILtf+Ni29LKLQDcVyCH7tvJGHIyObHJ3oXaoIK SKgTsrb2JE+eBi2p4D9W6Qi0qXPtx+O03zr3Q+JvaZtUNR1PPtAS0SWviJuCbZSjHs8G TygA== X-Gm-Message-State: AOAM530waDDSjNgbz9s+sCp4sQT8WxvFOb93BBJU8Bv1C6pNmjVNxSVm kpKRGO7TTxFxDmPhhzytBcHFBL2AHYJ8xw== X-Received: by 2002:a17:90a:e508:: with SMTP id t8mr859949pjy.106.1612751958158; Sun, 07 Feb 2021 18:39:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 18:39:17 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v3 44/70] tcg/tci: Split out tcg_out_op_p Date: Sun, 7 Feb 2021 18:37:26 -0800 Message-Id: <20210208023752.270606-45-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 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: sw@weilnetz.de Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
TCI fixes and cleanups
|
expand
|
diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 1e3f2c4049..cb0cbbb8da 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -293,6 +293,16 @@ static void tcg_out_op_l(TCGContext *s, TCGOpcode op, TCGLabel *l0) old_code_ptr[1] = s->code_ptr - old_code_ptr; } +static void tcg_out_op_p(TCGContext *s, TCGOpcode op, void *p0) +{ + uint8_t *old_code_ptr = s->code_ptr; + + tcg_out_op_t(s, op); + tcg_out_i(s, (uintptr_t)p0); + + 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) { @@ -403,17 +413,13 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, switch (opc) { case INDEX_op_exit_tb: - tcg_out_op_t(s, opc); - tcg_out_i(s, args[0]); - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_p(s, opc, (void *)args[0]); break; case INDEX_op_goto_tb: tcg_debug_assert(s->tb_jmp_insn_offset == 0); /* indirect jump method. */ - tcg_out_op_t(s, opc); - tcg_out_i(s, (uintptr_t)(s->tb_jmp_target_addr + args[0])); - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_p(s, opc, s->tb_jmp_target_addr + args[0]); set_jmp_reset_offset(s, args[0]); break;
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/tci/tcg-target.c.inc | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) -- 2.25.1