Message ID | 20210217202036.1724901-44-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3128997jao; Wed, 17 Feb 2021 12:57:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwq5uPGC98/teXw8q6xXbGckcdzp19eJ+FncjbXtWy0E3KXAGzVhfF8CGX79EvYnPqafToY X-Received: by 2002:a25:40d8:: with SMTP id n207mr1841381yba.3.1613595434877; Wed, 17 Feb 2021 12:57:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613595434; cv=none; d=google.com; s=arc-20160816; b=ho0RXsgxQr9NGLzA/T+1uuSRiZnEmUfhZb0J83Vj78Q8GkLuWJZSAHagSg0U2kPo0i soCZo2cRl7Loy4h51fN+Ugw8YFOL0+awhe8tMvxHdR594tddl7+5z5+1LfjWP78ridvw ENTlCyKXfXkwE5JCxjcec3Yx2isjnCmGx5vt0kZkkoC3u5t6JS0p1w0+H66zwNq5Sc8m zEf+8KCwzTVi0O1C0rmVBJbc0wMCF3LVgu0f4QpB9uHUJJ4+YQK+7oL6q50A8a6I74Pm 8YCzbge5rXRutEQFxTJlKl2+YVL5GCQV5mJXeaYE5regaOpDVqk9oZKd7uWrIaPTrn7U o4Qw== 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=EsUj7sq9+NLQtwJZ+3yHUWsYmpE8j3VuEo3uruSYCgE=; b=HUs+6o3aYZrBKmdafI0QDVqT347bK0cU3uHgUWp6Dl1kFTve14ypANxUTDo5ShxaL2 rNu4BNEcA7B3roMnP38u++Gn23QfYpHkxk1RDEFjmlV8q9TaqAA4tzsyNCeMdGnW1I2k uZthr6bPVw5vv7xYVwOw6asPMKjO1z67b7kJE8hKJ69ESJ8mAEvZcBBceY8A0jz0ocVG XjBmNCETqGO+cZqxinXu5K9beqrULOS1KntUpUT4gB9QVQqakZ4TraYDryihd8J+y4p9 cprRa2sDpjdjf1ClsQ9go5Nc0RjzqprIruQolPsG0XdS8CZW1RDUHrFCdSJb1ktPA9ej +M7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="iJz/xoMH"; 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: <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 t6si3647917ybl.360.2021.02.17.12.57.14 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Feb 2021 12:57:14 -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="iJz/xoMH"; 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]:44254 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 1lCTso-0008FQ-Ae for patch@linaro.org; Wed, 17 Feb 2021 15:57:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33308) 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 1lCTMS-00013C-Nz for qemu-devel@nongnu.org; Wed, 17 Feb 2021 15:23:48 -0500 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:46590) 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 1lCTMR-0007bg-8m for qemu-devel@nongnu.org; Wed, 17 Feb 2021 15:23:48 -0500 Received: by mail-pg1-x529.google.com with SMTP id 75so5822996pgf.13 for <qemu-devel@nongnu.org>; Wed, 17 Feb 2021 12:23:46 -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=EsUj7sq9+NLQtwJZ+3yHUWsYmpE8j3VuEo3uruSYCgE=; b=iJz/xoMHZ4ulwMF9GOFv/Tdv/yPQI/L1pBEFzSM7eMlf1OqIWjXTm0myDO0etsXwLm 8VXyb81k9PI9oqAE/md8GkW9Nk98pAPZKtmov9dAibSVidn5CQrsm3yFpBqg7g7rC5lx taS56WXhmVKJSoEM+QvbJT6IVrHQu5cI4mLR2b/yDzJycn8wnzVgscFJFUvR8aGjAMZn PAmnYk7brUuusF68aGD9eggXwUQf9geXlPUBar9TyBHBSIl2e3+3eKunr81OLUuiz5oB 7RNwBFG+h5PnrNYo6q9SYnCWOKoMahvN/pa/CLhoM0/Vkq24OzIQYD0VzqjOMYZQv3ep e/rw== 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=EsUj7sq9+NLQtwJZ+3yHUWsYmpE8j3VuEo3uruSYCgE=; b=GsWXSD9y07BH/mI0ZtQSAfeIiCkagtZ4VBD0vs+K+ZMHSiN9OZXuX6zilR5DeUPwKF 45ia5bL3lpSDCYw5ERENt59/HIFku3taXOD5FW/R8t4J3+X28py31LXA0gY1pmBaaLmi LF2t1Yzr53DTr+eePAhv9p8RYfNVaGnW+eHgQMlePrJnIPpDnqgZ6vhCVrAgF1tG4qC4 AbJsMds9ZPAlnJsa5RdcOqPNL1NwXUFP2ilwIi9WVfjos3damUU6yvesv+hTUC+5CXx0 BDpOzB3pOi+IvHvHHf1lw03ezJjhn+LBDG5NsHA4kCo2uqweYHiOwmWOK072A5YY/7mT 2/KQ== X-Gm-Message-State: AOAM5302yCZHHMg3L5+jTzcsR8b9FxsvDjPq/h+CN568oQhNvqFWrkrE k3UPAWGriEqtU5H40/miqblKz2oDXZRmpQ== X-Received: by 2002:a65:4bc3:: with SMTP id p3mr952800pgr.318.1613593426056; Wed, 17 Feb 2021 12:23:46 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 12:23:45 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v4 43/71] tcg/tci: Split out tcg_out_op_l Date: Wed, 17 Feb 2021 12:20:08 -0800 Message-Id: <20210217202036.1724901-44-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 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x529.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, alex.bennee@linaro.org, f4bug@amsat.org 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 707f801099..1e3f2c4049 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -283,6 +283,16 @@ static void stack_bounds_check(TCGReg base, target_long offset) } } +static void tcg_out_op_l(TCGContext *s, TCGOpcode op, TCGLabel *l0) +{ + uint8_t *old_code_ptr = s->code_ptr; + + tcg_out_op_t(s, op); + tci_out_label(s, l0); + + 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) { @@ -408,9 +418,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, break; case INDEX_op_br: - tcg_out_op_t(s, opc); - tci_out_label(s, arg_label(args[0])); - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_l(s, opc, arg_label(args[0])); break; CASE_32_64(setcond)
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/tci/tcg-target.c.inc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) -- 2.25.1