Message ID | 20210512185441.3619828-20-matheus.ferst@eldorado.org.br |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp5125926jao; Wed, 12 May 2021 12:37:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQIWJg/1AvP04dTXuQ+oemh060Cz6Dzl2dvzRsXjpqaeMhh/RKMmWX9xpJRUsrdutj2xDX X-Received: by 2002:a6b:6905:: with SMTP id e5mr28136811ioc.100.1620848229897; Wed, 12 May 2021 12:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620848229; cv=none; d=google.com; s=arc-20160816; b=amfyf0tKyu391TlYZXC8m5EBdd6z1og4ooAu+ntgAcLMjoa1d3gdIwMskm9bMcnSX+ ydzh7t+5UhZL3BKg9hSNHA4nRGVZ7bSUT0m+ZHOk/i9H9jXcTJkRKuBfC/pi9bU0WOMb q7KT6w/ITVz/dE9ughYw0ZmQCczofnoiufz03P6lvWviCxxcgqq9BURCSH0oAFrzaSW9 byTg8BBmSbyO0s2WvM7BERLrTi6GUdNSmOSdp82mSg7w/ksRgOUVjJsC5npR3We7LLjU Re6OpMQRc8L7oj2yV+57ZXcw4m4jz3w97jrCwoQE3MUzJAgQjm7LG7s9Ul5z37zPmXQc hGmA== 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; bh=eYE96axjvak9DjVrCAfd95U8JB30eLQTtqgjD6+kl0g=; b=OQBlRso7C+0i8/4rYnb4OwToydbCuLcTe6JhWEWtNmr5xIbWc0LGl1jZB3edaK15gT EjWiO2EEtdP5jY5WbrINEhaZF0Xs4EPDB8QAzaRIHhLqHQ/Ym9nlbB0VmSALWRxNJGm5 e8KCzp78QulJJRP4C5z5I0HoU44kAawDR915H42MWvGsBbg6bm/ecHaQo2t5F1ABtbvd BOtEihbhy5JrPd42lMbLc/fvQdrOigfPkT5Mqj6tY5W5qPkmApg1x5ku1Oz+omazsMlj VuqWcUUgslm4Qba2SBy4937BDbPLaUQ9SN7dNPvwse9SGMGAnBXS9bQQ87f5w23jwjIr rGYA== ARC-Authentication-Results: i=1; mx.google.com; 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" 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 k13si942992jav.44.2021.05.12.12.37.09 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 12:37:09 -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; 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" Received: from localhost ([::1]:52010 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 1lgufN-0006ja-6f for patch@linaro.org; Wed, 12 May 2021 15:37:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <matheus.ferst@eldorado.org.br>) id 1lgu3x-0000Is-91; Wed, 12 May 2021 14:58:29 -0400 Received: from [201.28.113.2] (port=47887 helo=outlook.eldorado.org.br) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <matheus.ferst@eldorado.org.br>) id 1lgu3v-0000ms-G8; Wed, 12 May 2021 14:58:28 -0400 Received: from power9a ([10.10.71.235]) by outlook.eldorado.org.br with Microsoft SMTPSVC(8.5.9600.16384); Wed, 12 May 2021 15:56:05 -0300 Received: from eldorado.org.br (unknown [10.10.70.45]) by power9a (Postfix) with ESMTP id 2161D80139F; Wed, 12 May 2021 15:56:05 -0300 (-03) From: matheus.ferst@eldorado.org.br To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org Subject: [PATCH v4 19/31] target/ppc: Move page crossing check to ppc_tr_translate_insn Date: Wed, 12 May 2021 15:54:29 -0300 Message-Id: <20210512185441.3619828-20-matheus.ferst@eldorado.org.br> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210512185441.3619828-1-matheus.ferst@eldorado.org.br> References: <20210512185441.3619828-1-matheus.ferst@eldorado.org.br> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 12 May 2021 18:56:05.0453 (UTC) FILETIME=[76196FD0:01D74760] X-Host-Lookup-Failed: Reverse DNS lookup failed for 201.28.113.2 (failed) Received-SPF: pass client-ip=201.28.113.2; envelope-from=matheus.ferst@eldorado.org.br; helo=outlook.eldorado.org.br X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: richard.henderson@linaro.org, f4bug@amsat.org, luis.pires@eldorado.org.br, lagarcia@br.ibm.com, bruno.larsen@eldorado.org.br, matheus.ferst@eldorado.org.br, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
[v4,01/31] target/ppc: Add cia field to DisasContext
|
expand
|
diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 153c61e8ec..dec2ff1886 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -9251,9 +9251,6 @@ static void ppc_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs) if (ctx->singlestep_enabled & (CPU_SINGLE_STEP | GDBSTUB_SINGLE_STEP)) { ctx->base.max_insns = 1; - } else { - int bound = -(ctx->base.pc_first | TARGET_PAGE_MASK) / 4; - ctx->base.max_insns = MIN(ctx->base.max_insns, bound); } } @@ -9308,6 +9305,11 @@ static void ppc_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs) handler->count++; #endif + /* End the TB when crossing a page boundary. */ + if (ctx->base.is_jmp == DISAS_NEXT && !(pc & ~TARGET_PAGE_MASK)) { + ctx->base.is_jmp = DISAS_TOO_MANY; + } + translator_loop_temp_check(&ctx->base); }