From patchwork Wed May 12 18:54:19 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: 435634 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp5103892jao; Wed, 12 May 2021 12:06:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbz7/6aJN8Td1fBol2ClMe1U+JiEXA01LRMX0GJDxQ0KL/d0w/7m4cj6GmicB9xwBqkrpb X-Received: by 2002:a17:906:8147:: with SMTP id z7mr38558733ejw.496.1620846361716; Wed, 12 May 2021 12:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620846361; cv=none; d=google.com; s=arc-20160816; b=OG1dWUvkzQWc2HU8KG3wtSUEkz6XEndZiYzZzfjVpDe34fEMMhgK31x+gCSIK838VP 6kQhntPiExhP8Z7PpuNBusqxEHsZZdxf3n/vmpZrSroF9audkxdxa6t1WC6NJDt8hgLa biLo0P2TAAOcFWKCau6RzBX2v2UDWHLP+ddys7NFD2rZYPqZXZirG16Ljv6y48V1Lge7 409HFWcS3XjKH8AG5+6bID1eQVHMvFy+m4WhPwGB2O5Wc2iE4OyhoDYy9Q73oSeSekip NboUwcPf+IhbUBwAiAsvb8Ytd8BKPn8O3VsW8v8mBGf3PvovfSLFpENWGc2Ajj49jtZL 2S4A== 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=fQ3IbQyBLBSBssaJYIYkObAizJAnbsPBhQpbd99VUPM=; b=jRrNdgkpz/2SLPgQmqFTjiuiE3LvolE5tDW/aaF/ERyo22zfpuiPLhomIL5LKKgKdI 2bhIeRlfbYVDX5T4RCriFh5nMA1ZT6jmmSH2D57J83FIT0Asd5KKx+BzCz5DNY3I0gZ5 kyreYC7NU7/OdAddeDtJmFiRzkE+IbiHXXtyLHuLtPpkZ+mhg0Jfe1p3KDmPA7UmBV8I 4KaErmmXtjMX/mPYCC9wE5uY7FQtyy4gQFzK/gHtEBxqDjzxo801J1b7Erp8ym226vhl 5/s6+rvDiyGz8JuFjY7g8M+czrUSQTZ9dLopRCFAnWP3VyTdJv/+3XPYbk547aEiSOVp NsCw== 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 m20si513368edp.549.2021.05.12.12.06.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 12:06: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]:44860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lguBE-0004uI-Gq for patch@linaro.org; Wed, 12 May 2021 15:06:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgu24-00061S-7X; Wed, 12 May 2021 14:56:32 -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 1lgu22-0007uU-LY; Wed, 12 May 2021 14:56:31 -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:02 -0300 Received: from eldorado.org.br (unknown [10.10.70.45]) by power9a (Postfix) with ESMTP id D1FB680139F; Wed, 12 May 2021 15:56:01 -0300 (-03) From: matheus.ferst@eldorado.org.br To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org Subject: [PATCH v4 09/31] target/ppc: Remove unnecessary gen_io_end calls Date: Wed, 12 May 2021 15:54:19 -0300 Message-Id: <20210512185441.3619828-10-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:02.0218 (UTC) FILETIME=[742BD0A0: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 Since ba3e7926691ed33, we switched the implementation of icount to always reset can_do_io at the start of the following TB. Most of them were removed in 9e9b10c64911, but some were missed. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst --- target/ppc/translate.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.25.1 diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 88fe24ef95..1c02e21a56 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -568,7 +568,6 @@ static void spr_read_tbl(DisasContext *ctx, int gprn, int sprn) } gen_helper_load_tbl(cpu_gpr[gprn], cpu_env); if (tb_cflags(ctx->base.tb) & CF_USE_ICOUNT) { - gen_io_end(); gen_stop_exception(ctx); } } @@ -580,7 +579,6 @@ static void spr_read_tbu(DisasContext *ctx, int gprn, int sprn) } gen_helper_load_tbu(cpu_gpr[gprn], cpu_env); if (tb_cflags(ctx->base.tb) & CF_USE_ICOUNT) { - gen_io_end(); gen_stop_exception(ctx); } } @@ -605,7 +603,6 @@ static void spr_write_tbl(DisasContext *ctx, int sprn, int gprn) } gen_helper_store_tbl(cpu_env, cpu_gpr[gprn]); if (tb_cflags(ctx->base.tb) & CF_USE_ICOUNT) { - gen_io_end(); gen_stop_exception(ctx); } } @@ -617,7 +614,6 @@ static void spr_write_tbu(DisasContext *ctx, int sprn, int gprn) } gen_helper_store_tbu(cpu_env, cpu_gpr[gprn]); if (tb_cflags(ctx->base.tb) & CF_USE_ICOUNT) { - gen_io_end(); gen_stop_exception(ctx); } } @@ -666,7 +662,6 @@ static void spr_read_hdecr(DisasContext *ctx, int gprn, int sprn) } gen_helper_load_hdecr(cpu_gpr[gprn], cpu_env); if (tb_cflags(ctx->base.tb) & CF_USE_ICOUNT) { - gen_io_end(); gen_stop_exception(ctx); } } @@ -678,7 +673,6 @@ static void spr_write_hdecr(DisasContext *ctx, int sprn, int gprn) } gen_helper_store_hdecr(cpu_env, cpu_gpr[gprn]); if (tb_cflags(ctx->base.tb) & CF_USE_ICOUNT) { - gen_io_end(); gen_stop_exception(ctx); } }