From patchwork Wed Jul 21 06:41:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 483261 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp5916289jao; Wed, 21 Jul 2021 00:04:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU2616pgVE870JpdMxcye5OhmWVT20y7wzhipsaPJO5qjk9HwesIDOY+TvjmAvNpT0rsXZ X-Received: by 2002:ac8:ece:: with SMTP id w14mr30292734qti.5.1626851063614; Wed, 21 Jul 2021 00:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626851063; cv=none; d=google.com; s=arc-20160816; b=pfI/53n7hsyadgtFpDdLwZr+237X8ouTqTQLXBFsUnbCkHLzjg1jkg1QJxq7CRxDvW HmTVCwyQftcFwqb6rbXcctHXRcPiWoh1VBdGtg4Bfdu3bAW5bNmOf2ig6zXS/TdrHyH4 qc3BDh6zRpYzzCw/PeEl4J0+6IxzWQg1BKBrf7dp3u4fN9Xw0qUsRfyhutVARhkfXpJQ Vol3a2Xnt9Orwlt5WafLESbapZk8VnRCYWS2mdGlDeju8s815l1/wUubmCofwU3KWEAu 4CevDQgqcrWriTAMezfJkg8okPjCcUQxfg6t03TBHDDpyHnmHq+8b1Y5yPou4Vd/+Osd xvxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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 :dkim-signature; bh=lWWxg8MR6KKJ1tBQpQnAGh32uFzHWDCE77XSSdScV5I=; b=zbrzWRLk6IvYe/AYdGya+5CWzQ7GhGbVr1iE0U46H0Uyv3fwuKcXc91LMykoGkUMXa ty/pZHiUgYaIB/JrEWKF0rvQkcoDF+CWV76vhv3Q50plS0PJcdY0tE8tNCi6DAFXAYP4 B1UKbd4I9laSXOI0prkensO0D7LFxb6+P6WuJ3JBCXHKjvLoRIwhUf9b41xafpgt1ebq IBI4mk16LKcj3y8Vy4TxPM0LOqD7D38nJBFrxSmQeHNZs/Q3HemL3du4jvfmAc2PYfYO xOM0wDyaEuVir4rnrl1x2lw3BQSMoQSw3/kNtHnlPuowiBfJWpwTDzGbSgzlrwECAAEg ViWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ku3qfA/5"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id fo14si19192183qvb.183.2021.07.21.00.04.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Jul 2021 00:04:23 -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; dkim=pass header.i=@linaro.org header.s=google header.b="ku3qfA/5"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m66HG-0001Fq-UX for patch@linaro.org; Wed, 21 Jul 2021 03:04:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m65vz-0005DW-5b for qemu-devel@nongnu.org; Wed, 21 Jul 2021 02:42:23 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:38629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m65vx-0005iR-Kn for qemu-devel@nongnu.org; Wed, 21 Jul 2021 02:42:22 -0400 Received: by mail-pl1-x62d.google.com with SMTP id u3so482238plf.5 for ; Tue, 20 Jul 2021 23:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=lWWxg8MR6KKJ1tBQpQnAGh32uFzHWDCE77XSSdScV5I=; b=ku3qfA/5bxKlMBqFkkKnVZMLEi+qiILhIlbk4twfDj+R28IOJB+y+WDSQ9HAhw4EH1 Oo1KHPn/VJanUm8nonUZ2VlKh0jqYgi/65rk7yIbj4695VLWb34juKDD8L1bzt8nUg8P mQ1Mg+n094a4VjGYNXsvdqj9uj+uuLr5CeXWgPpRaIro6s9+O8JtsI29+TOKpqxoY4/O /slEBjI+nMhBPhxDqzc2d9auDJDYsh75qzce/Xt9uD7Gs7YIKm/eHRDXJDizkF+Di2YD oFMEtjNYcxL1nJDhNxCRxDhIik62W3lct+hSZvV2fnWydRi8WUkaW4vewA7xlMUaKC9r fpZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lWWxg8MR6KKJ1tBQpQnAGh32uFzHWDCE77XSSdScV5I=; b=pv3rorwPDZWLurBrzvgFRnQilKzw4rKeqvbL4+zKl4xUrvpVHsz0Ok+kzXf3H14cuQ O6c+jKsQ3jOtmbTFO7OBXGpKFwVwyzKXVuGa96KtLjcTbhnauytrhj1b4Kw8wD0WclKJ Y42oaXkm0P8MxOCQBv9PUy/eX71IgXy300m+O8wO3z4RpV2wDgGcpoMQLEXrAuJbGDEq LUuPcLQbGUdZ00Z0b9eGC71Pxea5bm8j4yIRbVUC9bYTF/+HkCi9MFqlGIjCx7Wz1s9N a0bLXU30eY4j4M39i/6MYgL557FaVnav19N7AjQhjg6CQScTR7XTVQ3YD7mubskRM7W5 SIcg== X-Gm-Message-State: AOAM530yx+TVvd1KIUm/FZkUCgGrU8TXsk59QlvJMIuq+LNTF1ftX2RE yLBnySACTOBgsvms6ycJDDLqSM9yL1/KEg== X-Received: by 2002:a17:90b:4c92:: with SMTP id my18mr33134150pjb.167.1626849740328; Tue, 20 Jul 2021 23:42:20 -0700 (PDT) Received: from localhost.localdomain (204-210-126-223.res.spectrum.com. [204.210.126.223]) by smtp.gmail.com with ESMTPSA id q17sm21146132pjd.42.2021.07.20.23.42.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 23:42:20 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 22/23] target/tricore: Drop check for singlestep_enabled Date: Tue, 20 Jul 2021 20:41:54 -1000 Message-Id: <20210721064155.645508-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210721064155.645508-1-richard.henderson@linaro.org> References: <20210721064155.645508-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" GDB single-stepping is now handled generically. Signed-off-by: Richard Henderson --- target/tricore/helper.h | 1 - target/tricore/op_helper.c | 7 ------- target/tricore/translate.c | 14 +------------- 3 files changed, 1 insertion(+), 21 deletions(-) -- 2.25.1 diff --git a/target/tricore/helper.h b/target/tricore/helper.h index 78176aa17a..b64780c37d 100644 --- a/target/tricore/helper.h +++ b/target/tricore/helper.h @@ -153,4 +153,3 @@ DEF_HELPER_2(psw_write, void, env, i32) DEF_HELPER_1(psw_read, i32, env) /* Exceptions */ DEF_HELPER_3(raise_exception_sync, noreturn, env, i32, i32) -DEF_HELPER_2(qemu_excp, noreturn, env, i32) diff --git a/target/tricore/op_helper.c b/target/tricore/op_helper.c index 32c2bc1699..9476d10d00 100644 --- a/target/tricore/op_helper.c +++ b/target/tricore/op_helper.c @@ -107,13 +107,6 @@ static void raise_exception_sync_helper(CPUTriCoreState *env, uint32_t class, raise_exception_sync_internal(env, class, tin, pc, 0); } -void helper_qemu_excp(CPUTriCoreState *env, uint32_t excp) -{ - CPUState *cs = env_cpu(env); - cs->exception_index = excp; - cpu_loop_exit(cs); -} - /* Addressing mode helper */ static uint16_t reverse16(uint16_t val) diff --git a/target/tricore/translate.c b/target/tricore/translate.c index a0cc0f1cb3..07084407cb 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -3225,14 +3225,6 @@ static inline void gen_save_pc(target_ulong pc) tcg_gen_movi_tl(cpu_PC, pc); } -static void generate_qemu_excp(DisasContext *ctx, int excp) -{ - TCGv_i32 tmp = tcg_const_i32(excp); - gen_helper_qemu_excp(cpu_env, tmp); - ctx->base.is_jmp = DISAS_NORETURN; - tcg_temp_free(tmp); -} - static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) { if (translator_use_goto_tb(&ctx->base, dest)) { @@ -3241,11 +3233,7 @@ static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) tcg_gen_exit_tb(ctx->base.tb, n); } else { gen_save_pc(dest); - if (ctx->base.singlestep_enabled) { - generate_qemu_excp(ctx, EXCP_DEBUG); - } else { - tcg_gen_lookup_and_goto_ptr(); - } + tcg_gen_lookup_and_goto_ptr(); } }