From patchwork Tue Sep 6 10:09:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 603000 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp4412585mae; Tue, 6 Sep 2022 03:56:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Ky6e9LQFjxgDOh503gaKUs1qDd9/guq6M4mYzh4T3DO6tb2EeBmHQ12DfGl5+/tSufSM/ X-Received: by 2002:a05:6214:c2b:b0:476:813a:b173 with SMTP id a11-20020a0562140c2b00b00476813ab173mr43570840qvd.31.1662461800495; Tue, 06 Sep 2022 03:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662461800; cv=none; d=google.com; s=arc-20160816; b=moaF8ca6KprgujDg9dN5Mjjnj5mHmrAr4hyBg3/5fsS74mFf9XtbGrXS2MqJMhwhBs q04SXsM66Tp6cxeqQLsSurAJmV7/CRPJjtYrjoMCqG+zWih+UERDAQlpphqs6GZ1ZD9q TKNn98PCewkjbnrgLRK5GZZuMbO3dcrVOdi7thPX3mFRSLtgt3VVd9yCSnOVI9WkyW8w Ur67IOoNpiwkGbyO3eZqnf4CsDAhZYiyzRCNFgWT1SjMLudUFgg3aSw6nSGGiqHURwh5 QiqBL2Qbk54s3QVQ4Bd9Ay7nr2+hE6nIcTKkDq/IQUQOjWuTkgZ82endJcRE7UR3xDUt 4wjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=sStumSItgDeXZaFuVPIAQyYganzdZgHWxSiIZOoEM0E=; b=dbpKHFMeuS/sdGFqYJbCCgwxYC0BtSUwV8nd/NevO//j373yvekvGKsKQBb0q+K4FV aXo6I5lAUfn8qakzc1EYfgHswVUnL9zOdfEhpeHpK1sveBPrx13Z6PSAvAVc1+vm9iDU d3VBlw78zS99A8GRZgKfwthAbd+ALFw/nShXy5aQHrpWD/jWUiwjjRXLiuJdEYZAlJ90 heg00nDhnrDG+e7qcpHhy0+wC9PLfn6YnE9TEnaSM90OcMBxQ3y8DeWUCOWBf5T6ydN2 aD0LsKvuQAInMBAElbhQa3TFOTdHur8PvMfsBSzreBhOATtHqn5qd+yOeKCf2dkP7zum MhkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fwy0ioLK; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k5-20020ad45be5000000b00496cddbd3bcsi7427334qvc.373.2022.09.06.03.56.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Sep 2022 03:56:40 -0700 (PDT) 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=Fwy0ioLK; 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]:46334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVWG0-0005Ug-0A for patch@linaro.org; Tue, 06 Sep 2022 06:56:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVVWm-0000Gt-Ir for qemu-devel@nongnu.org; Tue, 06 Sep 2022 06:09:58 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:42543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVVWk-0003Yc-UX for qemu-devel@nongnu.org; Tue, 06 Sep 2022 06:09:56 -0400 Received: by mail-wr1-x433.google.com with SMTP id bp20so14180015wrb.9 for ; Tue, 06 Sep 2022 03:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=sStumSItgDeXZaFuVPIAQyYganzdZgHWxSiIZOoEM0E=; b=Fwy0ioLKe6rJKVIj1oG3x2siEffFxo9xVtQJxk6s6wW++Xcq/HD+O0HM2pVam04/Po kNYva3iAhePF0ksvC62ysvy/5FmDGw/VcSlHfZbMMAAYI1aZ9mZjGPq0zklaWtflY85I HnLr8JsZqcCByb/lqEVNqNDqgBkUAhMXLtYvhY/59zioTbeQZrjyB6ZD7d9qIspQoBJi DrtnQjXpPpMHkLaMzOA27P/W9Rc98pHbb5P8fhfk5FYlPtCaaCHybnY3POlI0CHaDahk Hrk90xkSIjGcr8rTCvPLl3/2C9m8Y9Zy/gCckRsiZF0SS3pDGwp5BmzIHQoTScwj3CoR x3Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=sStumSItgDeXZaFuVPIAQyYganzdZgHWxSiIZOoEM0E=; b=yiHPfJJlvX91tU4WUpx5ii2bc3BK5p6w1+cUOjxZubrUODZR0qmlmr+QFBZ9Ib+MXa wYCzhvNIot/5b+XXW2qR+WFjcnYpeuuk5Sh/K3/U9ipKg0Zv5K3AbLPPeVadMfoEQpKi sp2BJzBY1G8SwL06kCPbp6YIxY6SuuXt5XN8AY5iWzubqOgejOmUmOW70VdX0oeJJaqk GnIPnAcvYddBdRtmdF2np2cL87Vbf7Sh9147aPTuGp5upXm2lFD9eVzNi4sfvnJueLMZ AknlKXFbk/nNMQLjpcCYvM1zjU02A1lk2cJ4N0Wk6AyFZHv8XDd4EC5fXOzrZyD9z0TN zAxA== X-Gm-Message-State: ACgBeo08yiCbPvL//C4zlaQyzx4opO7PM5cECSs85B4a4M61E+qiYw6P ldWMVj3akrHUWrgv5DgBBsv2GVDn2l31GUUI X-Received: by 2002:a5d:59a6:0:b0:228:ac72:3c27 with SMTP id p6-20020a5d59a6000000b00228ac723c27mr4337975wrr.73.1662458994244; Tue, 06 Sep 2022 03:09:54 -0700 (PDT) Received: from localhost.localdomain ([2a02:8084:a5c0:5a80:ba98:3a71:8524:e0b1]) by smtp.gmail.com with ESMTPSA id f25-20020a1c6a19000000b003a840690609sm23125014wmc.36.2022.09.06.03.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 03:09:53 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com Subject: [PATCH v2 21/23] target/i386: Use gen_jmp_rel for DISAS_TOO_MANY Date: Tue, 6 Sep 2022 11:09:30 +0100 Message-Id: <20220906100932.343523-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220906100932.343523-1-richard.henderson@linaro.org> References: <20220906100932.343523-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x433.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" With gen_jmp_rel, we may chain between two translation blocks which may only be separated because of TB size limits. Signed-off-by: Richard Henderson Reviewed-by: Paolo Bonzini --- target/i386/tcg/translate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index 7a9e533c6e..97a5f7e432 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -8740,6 +8740,9 @@ static void i386_tr_tb_stop(DisasContextBase *dcbase, CPUState *cpu) case DISAS_NORETURN: break; case DISAS_TOO_MANY: + gen_update_cc_op(dc); + gen_jmp_rel(dc, MO_32, 0, 0); + break; case DISAS_EOB_NEXT: gen_update_cc_op(dc); gen_update_eip_cur(dc);