From nobody Wed Feb 11 03:09:30 2026 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1625764146; cv=none; d=zohomail.com; s=zohoarc; b=XcyQqPhayzrexcPwiLFHDgQ2a7Lcsb3jvwbKe4r72CaSeQFb4KTxepL1SKXwcqJ8pJ9041s/9+saZ5Gng6Bt1xIcHzNQwyg19eXyuEe+r73j9Xs/M677wtJrisF8E2yAhub94znVl4k2gEkE5TJCA6/fVlftI6Vwf0vy05Wr0I0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625764146; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=NbQFCjsTG27rkqKfl9C38LdMPWKV+Bc+MrvnccbRs+s=; b=B4auXe6HhgJw5pLE9knxwCY8K8wKCdpCovAq3JPD7LXNjf6RHxRlzg2+d1Et4YgumGcuK9yXID5h9xH8XsZ8H+RpTInBwBZ5sdh/juXKZiLho9KP9TztpxyXB69TFx5sprQpjHWl7tjNDH95khGNK0mMdQhbhLQHpcxBNXEKP5k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1625764146629981.8608387860578; Thu, 8 Jul 2021 10:09:06 -0700 (PDT) Received: from localhost ([::1]:59958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1XWL-0003ZJ-Hb for importer2@patchew.org; Thu, 08 Jul 2021 13:09:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1X5H-0001oN-2T for qemu-devel@nongnu.org; Thu, 08 Jul 2021 12:41:07 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:38661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1X5C-0008D6-BE for qemu-devel@nongnu.org; Thu, 08 Jul 2021 12:41:06 -0400 Received: by mail-pf1-x42e.google.com with SMTP id j9so290333pfc.5 for ; Thu, 08 Jul 2021 09:41:01 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id j129sm3465678pfb.132.2021.07.08.09.41.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 09:41:00 -0700 (PDT) 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=NbQFCjsTG27rkqKfl9C38LdMPWKV+Bc+MrvnccbRs+s=; b=vlnG8P91wrNP5xOMvMNHvPlIiocspHbaL/Som1ZBcLaWWaNmz6xK2iGyiIukHwZjt/ TN4hIz37ajSRTDdasCw40Z+DLnFIwPR9xBQ1Bjnh9SKKs0flGxOxKVhFW8SMUi5vOYzB c/5jEBIfSz2ySlPWNwBgCQBg6HrMQWhpZwOCV6hXnoANZ0TjrawNQM+yHvu/iu2r21Vn 00lmbaOZgpNvZqI7KB1JS4yUwKQ48l3d/I+eCSiBhReMfblPEzgbRhDW3TAeSyfeGvML QWcqOo5GTKrf/qn/ZbHHsFGhPr0KQNV6XhqVkuzFzwSr3shENFXAE12EzjXieOLB8NLH +sSw== 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=NbQFCjsTG27rkqKfl9C38LdMPWKV+Bc+MrvnccbRs+s=; b=Imk2Z1dAg1q/DXRgNWf14T1aBeEDQSQBkKz25UkS1kdUL2Ii7ReNF1gHhTSAwtt3QC tJ+/NUAFAyx25zU8iaWYpGOKPuww59zpJXrMDUHYWzb8nkzqNDfBMUlyltmMj5RNEWg4 Akb8S2v3uI2MBeO0duTJaGsHepU05ruh5BNBe0KRN2ohIdVxaVuDSxJVA7IidT3UOtz9 8Dd0ZHb1bEOJjX6kNPoB43tH/f7mcyRR+5wRz46T1Tum8PzTqt9QYDwwVNdJxarwcx3h IXX8tsl3ODLHlgzMMwwDSG/rh6cDlDR8FhjrCfPlo7TkS66Xqb5ZRlmfTNIXuquriFIW AWXQ== X-Gm-Message-State: AOAM530LNub5p3ataMEfH39sQigII0l7S7szwPyfQ51UrM2UA5DH3Fgi 4Jqv51mIYupdQ39qVBIKq2nFhJlM9JMPZg== X-Google-Smtp-Source: ABdhPJybsH1u2YPEzX6XWfaO+bxL+z+fTPpP8xBT3iEIhAzsPmXDwopddEUm4UEyZZd/LeX4n3Dz0Q== X-Received: by 2002:a63:f515:: with SMTP id w21mr32776961pgh.343.1625762461109; Thu, 08 Jul 2021 09:41:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 18/28] target/openrisc: Use translator_use_goto_tb Date: Thu, 8 Jul 2021 09:40:40 -0700 Message-Id: <20210708164050.711967-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210708164050.711967-1-richard.henderson@linaro.org> References: <20210708164050.711967-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42e.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: Stafford Horne Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1625764149030100001 Content-Type: text/plain; charset="utf-8" Reorder the control statements to allow using the page boundary check from translator_use_goto_tb(). Reviewed-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c index a9c81f8bd5..2d142d8577 100644 --- a/target/openrisc/translate.c +++ b/target/openrisc/translate.c @@ -1720,16 +1720,17 @@ static void openrisc_tr_tb_stop(DisasContextBase *d= cbase, CPUState *cs) /* fallthru */ =20 case DISAS_TOO_MANY: - if (unlikely(dc->base.singlestep_enabled)) { - tcg_gen_movi_tl(cpu_pc, jmp_dest); - gen_exception(dc, EXCP_DEBUG); - } else if ((dc->base.pc_first ^ jmp_dest) & TARGET_PAGE_MASK) { - tcg_gen_movi_tl(cpu_pc, jmp_dest); - tcg_gen_lookup_and_goto_ptr(); - } else { + if (translator_use_goto_tb(&dc->base, jmp_dest)) { tcg_gen_goto_tb(0); tcg_gen_movi_tl(cpu_pc, jmp_dest); tcg_gen_exit_tb(dc->base.tb, 0); + break; + } + tcg_gen_movi_tl(cpu_pc, jmp_dest); + if (unlikely(dc->base.singlestep_enabled)) { + gen_exception(dc, EXCP_DEBUG); + } else { + tcg_gen_lookup_and_goto_ptr(); } break; =20 --=20 2.25.1