From patchwork Wed May 12 18:54:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matheus K. Ferst" X-Patchwork-Id: 435655 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp5119914jao; Wed, 12 May 2021 12:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypGapAvjsqP0l+vh/+94EYt9rdRuLYrNjCOLmGvSBH/n5Av2GAUkfxF/lENlRKh+0aG8C5 X-Received: by 2002:a05:6602:54:: with SMTP id z20mr18094111ioz.48.1620847693174; Wed, 12 May 2021 12:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620847693; cv=none; d=google.com; s=arc-20160816; b=n4VrhBgs5tKiHqvc/pVs8UWH/ETbYievran5ZHodEckUlO33/98A4Ed9uW2IlkzDSo omXPlaiVmOx51SgGt/f+Q1YzSTNNcjvwCnQ6qiY+Z1++MbLIlu4gprdJLuaWp14YMHJx BMDmp80E2Vl+7mYt2I5BWNUExTqeJodXPeXgD42nNsOq0qv8N0a+1py1xPZn6tOt19el XMzA7nwnMqJcCJKGQjRdI4cSxFBjtNxcdM2VnOoH9m2i4ol46j9WVu2sz3h8wkyFWJP5 lk/SaLBV3pB7HOfibnDg06/UmDQGL0ggwrMQVmmW0OKXZrUbsIO0aloiblQLbHko7GMI Qy1Q== 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=RewvJUf/qQlETIvt0svDGQ6PT09sIoHeAUftlH+Ga+g=; b=l0oecpEW+RUb82ywXCHJs0190lkQ5oBw3e7ZeybsR3362R3QnU5pOEbopnQda4M9GK yHyVATNJfutn1tHmuTRIAkt08eQZE8uBYbKqkSQp7lJW9yMc6+VCMfemxYP6VJDgNCCl O3uTdDW5Ed/8CUwoHf2U+QdQNsaIeMmfaB483hx5kVMKmwgWRsak1Tyr4Al/bK+Q1DvE jFhErtp9efDINTWT6HplSH3UfdPWVk+XnlGgoGoQ6W8g4DtgLxDP1oE01T7BswBINajy pN6Pyol92MN5YVOcyyzGE/N0R5yWJttnoK1gqltOwbWsp1dTXBqtVzWg7frso32nJJYw h41w== 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b23si960279jav.29.2021.05.12.12.28.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 12:28:13 -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]:33728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lguWi-0002bG-IS for patch@linaro.org; Wed, 12 May 2021 15:28:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgu2g-0006hE-1U; Wed, 12 May 2021 14:57:10 -0400 Received: from [201.28.113.2] (port=20812 helo=outlook.eldorado.org.br) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgu2e-0007uU-Id; Wed, 12 May 2021 14:57:09 -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:04 -0300 Received: from eldorado.org.br (unknown [10.10.70.45]) by power9a (Postfix) with ESMTP id CA1B480139F; Wed, 12 May 2021 15:56:03 -0300 (-03) From: matheus.ferst@eldorado.org.br To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org Subject: [PATCH v4 15/31] target/ppc: Tidy exception vs exit_tb Date: Wed, 12 May 2021 15:54:25 -0300 Message-Id: <20210512185441.3619828-16-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 X-OriginalArrivalTime: 12 May 2021 18:56:04.0172 (UTC) FILETIME=[7555F8C0: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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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" From: Richard Henderson We do not need to emit an exit_tb after an exception, as the latter will exit via longjmp. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/target/ppc/translate.c b/target/ppc/translate.c index bfda567ac0..9912686496 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -4651,8 +4651,9 @@ static void gen_lookup_and_goto_ptr(DisasContext *ctx) } else if (sse & (CPU_SINGLE_STEP | CPU_BRANCH_STEP)) { uint32_t excp = gen_prep_dbgex(ctx); gen_exception(ctx, excp); + } else { + tcg_gen_exit_tb(NULL, 0); } - tcg_gen_exit_tb(NULL, 0); } else { tcg_gen_lookup_and_goto_ptr(); }