From patchwork Tue Oct 11 10:26:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 614191 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2566995pvb; Tue, 11 Oct 2022 04:44:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4vZ1DR0g0aYd2v1P73/lTpT+dfAI3gYThMOwaikEnMS+B6+WGg7+dXFZETpsfmKXjua44X X-Received: by 2002:a05:6214:19c5:b0:4b1:867e:e668 with SMTP id j5-20020a05621419c500b004b1867ee668mr18301658qvc.8.1665488648545; Tue, 11 Oct 2022 04:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665488648; cv=none; d=google.com; s=arc-20160816; b=y5l68E5Wga0mBntZdrnJPsvGMnTJduH8s+S3fgvP08GtNx9I/MtHzMrCQ4w5/PVaWX o9MGW+WELrk6zCrKJdY60sOXXz+1abpxtRLppubw7D4RMvSE6lvtFdyxrVbJqS7s59ms YfAD/6/RYM4zGSUKNG+TNGMs4KxQ5CwgzLQn88cf9OEV69acAaQewtL4s32VhNE8HcM2 U/CwzU1GCD+XsdOB9K27gR2JRvq8f6HRJayhXrJpQlEGTzCZGwh+7B1cPZppIA7MunkI Nx+u5KcPUAQj77L9IHhAuz2x6bmn/LFwdXPQlwrgW7waWY7ARv/tP79BGe5OQ9fJ1x8D vWOA== 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=jVXWu5so8eiOLbp5V+dPBJ9ZByv5+S3LZqNBcPkJT8s=; b=bfM5ORb0/xwyAHxvhoYW+aSX40lFGdN2o0i+lAJpj5u6pJk1cOyAYelsPvR3enC0QG JWsZlGNmCms5IhapgxX3Hw+J7HSkjgGETJ1lZHJ8dXqmxt9baNKwrMmhacm3Mzv859Yd MQM+VmAMAmoNv1PAQCSc1Qhe+kpOg559JNvzbOSKNuo9c1uFV0uVbeXHFe8jJssFcjAa fnYeZMbFGlMPB30mf0neBWFmgaIQdi2w/7L5kLfJC4T2scq3MuSLX5bPGHud+jBzjrZl 7WiBtRpewf7ZlIkyqqYa6sypA0ei2FYZBqamWFxDOc8jhAKQXDj5WAu/g3+n+aWkWGRC h5rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OuMx+Feb; 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=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jn1-20020ad45de1000000b004ad0ce367c9si6442074qvb.122.2022.10.11.04.44.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Oct 2022 04:44:08 -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=@redhat.com header.s=mimecast20190719 header.b=OuMx+Feb; 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=redhat.com Received: from localhost ([::1]:37570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiDg7-0007Eg-VG for patch@linaro.org; Tue, 11 Oct 2022 07:44:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiCUr-0002jT-LV for qemu-devel@nongnu.org; Tue, 11 Oct 2022 06:28:25 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:36192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiCUk-0004cY-0R for qemu-devel@nongnu.org; Tue, 11 Oct 2022 06:28:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665484097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jVXWu5so8eiOLbp5V+dPBJ9ZByv5+S3LZqNBcPkJT8s=; b=OuMx+FebWTXSjwwBmR3a+jCqiunKsk95GKP5sPmPeqSwbQsUGEOQxtxHZBnJNP10Sbj9rn KV13HXxGkIl5lNgZcvIrdHA67hFvyhQV5/+OmbheTXY+DEMscXDZkF1/+TOXbvtG7sAF3T C6ZVDYHrr9bkXtFaUL5JQJcUAcDnlu0= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-78-SUWF49TPN_WyqSavXXHUlQ-1; Tue, 11 Oct 2022 06:28:16 -0400 X-MC-Unique: SUWF49TPN_WyqSavXXHUlQ-1 Received: by mail-ed1-f69.google.com with SMTP id z9-20020a05640240c900b00458dae4ed9cso10828872edb.3 for ; Tue, 11 Oct 2022 03:28:16 -0700 (PDT) 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:message-id:reply-to; bh=jVXWu5so8eiOLbp5V+dPBJ9ZByv5+S3LZqNBcPkJT8s=; b=7TXw8l0JoIf/YqbigKIDH8jimsKLeSAYD6svxWcpvVsyY33xwTiRLGshBKnSB15K86 UKq2KTu6LRgCk3PVRNIZfeX1NsRMTqyQw9rYqcrt3birAaqobaUQ2A3CQPFNqFZKqkND s/yZyw5ztaJpVBpxRL9865jkw07bAp5vPSzoxLXEn46n/CVJJytnzoGW6M3anktqLHbV Cn6pI7eWBIE8PVbMdv3C/MehGSXmq8AOPn+J/IX3WmY4mLnRPW58SHVZbeckGOV+z/cI 5+fMPCoX8/S0LpW+E4t5HBW2d8+M+ezIL1C+nHCm28C6s5DGtNAvzZmqiBYJ/7GIgvE6 EknA== X-Gm-Message-State: ACrzQf1cbAkZ1hbnHJRW6kmUIUUjAoI27f7GrXbC3teVvEIY1ZB9L6q5 CvW5SSQiStB29NS9qj96JRiJv1FmHJzW554cJB906ZnSFOWjbMw/6fdI2ei/GAKvFZ9SWm4GAb+ YwZdUVAoi8PcShF7HQ3Xtkwdr2ZPliiQKHP7sdXDmTAIqYH/xmLwxuxK5gVkUv40AbbQ= X-Received: by 2002:a17:907:94d2:b0:783:e5dd:9c79 with SMTP id dn18-20020a17090794d200b00783e5dd9c79mr19257983ejc.18.1665484094789; Tue, 11 Oct 2022 03:28:14 -0700 (PDT) X-Received: by 2002:a17:907:94d2:b0:783:e5dd:9c79 with SMTP id dn18-20020a17090794d200b00783e5dd9c79mr19257966ejc.18.1665484094541; Tue, 11 Oct 2022 03:28:14 -0700 (PDT) Received: from avogadro.local ([2001:b07:6468:f312:aad8:f393:e009:e014]) by smtp.gmail.com with ESMTPSA id ha6-20020a170906a88600b00780f24b797dsm6694115ejb.108.2022.10.11.03.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 03:28:14 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: Richard Henderson Subject: [PULL 25/37] target/i386: Use gen_jmp_rel for DISAS_TOO_MANY Date: Tue, 11 Oct 2022 12:26:48 +0200 Message-Id: <20221011102700.319178-26-pbonzini@redhat.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221011102700.319178-1-pbonzini@redhat.com> References: <20221011102700.319178-1-pbonzini@redhat.com> MIME-Version: 1.0 Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, 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.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" From: Richard Henderson With gen_jmp_rel, we may chain between two translation blocks which may only be separated because of TB size limits. Reviewed-by: Paolo Bonzini Signed-off-by: Richard Henderson Message-Id: <20221001140935.465607-21-richard.henderson@linaro.org> Signed-off-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 5b84be4975..cf23ae6e5e 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -8798,6 +8798,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_csize(dc, 0, 0); + break; case DISAS_EOB_NEXT: gen_update_cc_op(dc); gen_update_eip_cur(dc);