From patchwork Mon May 17 20:50:08 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: 440227 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1434984jac; Mon, 17 May 2021 13:56:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziphK+LO1q88bazun4ks/TJl3UU0QaYCPLGZKchtX+B7gzBC/5avH/FS322endh25I5ESI X-Received: by 2002:a02:b90b:: with SMTP id v11mr1891542jan.1.1621284961723; Mon, 17 May 2021 13:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621284961; cv=none; d=google.com; s=arc-20160816; b=HHorXSZAwpUDNsp7pDQNS/xm1xXZtmqUnAyIAub3THA3bYrZnUOYZUqGdmKzP3cbyH GDcJmjCMcp3lOvRVZTWe4SL/ixRQ9gYw50w22O4WGEUwGdxONsIyReBPXedsTlXP97c7 vFDmBvHjVpX/7xkn0jgcIb4XxEBQXdam/ykQOhb9Ny2znz8+z1r+VtQZq2a+QeujZIcf aH6qSdeObXEvV/OdLhFv8w+Pcu0SGJ5rLnB5kYd0iiXet714ZTVuoJOGjm9gNztiMR7y p5C/p7sZR1+E1eROfuxTapoZ4zxA++y2lR8xP51+ZsEMo6uvTS0+Vs6E79uVNXkfHpoX COlQ== 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=L8hUYtwMs5PLCyTpwU+AzzYEjdTw6lRyLmsDEgu7fcA=; b=Jlo1JFDI87lClT16dtOnPhj8VF9S+g/AwJcYkOS65KCukUCmGRm3o29j0X+G/2tdFN eottG9UNuVgnqGQ/Aam9fBQuXpaiLMH7rADJN04OSas+HgV7JnD314gwqjJT/W9ib7q4 lIe8asEHVEjiXUZax7DLdyFG/Q/fWzF/YzdXhOtJBcf1MRHsuolYSjRJleNqXIasc4hp M8Yv0ykPtwqpHs+o2cSgC+jxfAlcbwjdVIoRD9XWc6nY4wdMkL6A+bhi5Yt+kG9W+7x9 gezq99ZLv62oL9ARJ7ZevMK4Lk4DcpKGsSMf386XtDjDlRGaNP4bSfGSH6dbZpEhbDeg ia1A== 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 y10si11871912jan.19.2021.05.17.13.56.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 May 2021 13:56:01 -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]:50962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1likHQ-0001Dd-1q for patch@linaro.org; Mon, 17 May 2021 16:56:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1likDh-0004Pt-Kt; Mon, 17 May 2021 16:52:09 -0400 Received: from [201.28.113.2] (port=12648 helo=outlook.eldorado.org.br) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1likDg-00013X-9j; Mon, 17 May 2021 16:52:09 -0400 Received: from power9a ([10.10.71.235]) by outlook.eldorado.org.br with Microsoft SMTPSVC(8.5.9600.16384); Mon, 17 May 2021 17:50:30 -0300 Received: from eldorado.org.br (unknown [10.10.70.45]) by power9a (Postfix) with ESMTP id 132928000C2; Mon, 17 May 2021 17:50:30 -0300 (-03) From: matheus.ferst@eldorado.org.br To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org Subject: [PATCH v5 06/23] target/ppc: Tidy exception vs exit_tb Date: Mon, 17 May 2021 17:50:08 -0300 Message-Id: <20210517205025.3777947-7-matheus.ferst@eldorado.org.br> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210517205025.3777947-1-matheus.ferst@eldorado.org.br> References: <20210517205025.3777947-1-matheus.ferst@eldorado.org.br> MIME-Version: 1.0 X-OriginalArrivalTime: 17 May 2021 20:50:30.0534 (UTC) FILETIME=[46126A60:01D74B5E] 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 05e3c0417a..e68152810e 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -4648,8 +4648,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(); }