From patchwork Wed Jul 21 06:41:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 483260 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp5915622jao; Wed, 21 Jul 2021 00:03:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznDvMKEQZ/QDzUViMAMAysQIA0JIlo1fmW/Ywh7THJ6DoswGhlryoFcdeL93Z76ovKfJwn X-Received: by 2002:a05:6e02:1bc1:: with SMTP id x1mr23107685ilv.33.1626851001396; Wed, 21 Jul 2021 00:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626851001; cv=none; d=google.com; s=arc-20160816; b=xGm0NMCDcazqjKqze6TPij/yB/4TSveobPCvVILY9uxhvwZsZI6YWR/KWMEOWUSkdM H3K/C23h1HZYvzKettkLXbv3k0Bx23ztunZkTW6QrtcqEQmJmPdIGm3u19NfCuuRRugP f+M9YFRIiICYMgcPkg5Ccbm6DzY1gGAyU5Q/iUeRI7qh+oZIkRcs1w8R/FbLRcgsUdSi WDSFxtiOC13VqsbFyR0sJSw9C9p2NKgcW0K7FR1Spg+nR8YVDDFIM6cZsXkKPCwmVCiD RQJSrCuvpA/A3JTPqF3WXlny4rUpEUg26R71dQXlXzjOaCq2m54Zls4g1MQ6/2RTP7xb 7Kug== 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=xElal7zBzDgeiDYpk/rqZK/vrTjKBD2Z3snsIesdaks=; b=Wyem2ix4Js8IpgeBjLUEiJ+FPf15Nr1XwEV6ERMDRg6x3zC9rjPwlkKjqHql4ZoVK5 MOmOvFUz672DCTnNE9nd7uMYNJD/B4fpnPifq4T2ghNi/sP9vfioPPDti8Gf7jON8lyP rz5Ulcx+TGU8GO4Tv/7M6uOkLaFrWCr+YNFaPrC54SSoQlm84R1H+mbv1oF2lJCQ1no3 cZPn9EWHrEwFo9i1iH41lmEyJHF1JE6OmOl7KOm1nTwAAdISA1CBdd2/xSyB4uthR6VI N99do6aHBOzi/DfU5k3kfVw3deoV/Y7hNaWzKeo74P6vLaeCSG0xM5I5iB8w+OsQMq/l NeIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mFVXkgNv; 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 a10si25371076ilv.72.2021.07.21.00.03.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Jul 2021 00:03:21 -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=mFVXkgNv; 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]:40606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m66GG-0006en-TY for patch@linaro.org; Wed, 21 Jul 2021 03:03:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m65vr-0005C3-R7 for qemu-devel@nongnu.org; Wed, 21 Jul 2021 02:42:17 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:42806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m65vq-0005bp-Cd for qemu-devel@nongnu.org; Wed, 21 Jul 2021 02:42:15 -0400 Received: by mail-pf1-x432.google.com with SMTP id y4so1478294pfi.9 for ; Tue, 20 Jul 2021 23:42:14 -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=xElal7zBzDgeiDYpk/rqZK/vrTjKBD2Z3snsIesdaks=; b=mFVXkgNvQAgyiBL/sjul8Z/OlnKd6DUaI9QePkcWjA7v+2pGcykDA7yz6B8qf0SbCl qtq9GbQjGTLNr/9sqJ5MzB+9kRnPovb6ha5CEikIoTbm+OQWP0by4Oh0TkL+ODFCrvQI rpL/5kHkA6E5m+j+yp1pRq6irYeqiPm5hfiwuhn2C6WVdJ/TvHevDGg+vprK1oQS+1pc YirImxHEJTYs9fRGaEhRysOknS1TZ5+yh1TQNPVZVPLzXTlvIPX9E5MaNbTF23GWdcON HizcWa7R6XhXlkf+hfCKDriFuwZUsTR/BEiaVk5b3XdKvGkl8UXzlKZtX4SjwTm3BwBT c6cA== 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=xElal7zBzDgeiDYpk/rqZK/vrTjKBD2Z3snsIesdaks=; b=m7o3EuV3clJ0t8kYURshQ3D1X6shu5nKeKtApbvVEkdF0OKGgD6Q3CCBzRlksu9vuZ PRZPF3Vxbtv0mhqBe0SS+M5KbebgfZsCSfC2aKyiQEcTf6UMqBqA/5iMfVVlXdjIdJrc IxfB68jHDrACV4xxPiU/n1qz3z/88kZjCZF5F4xPqHiG+kUtwgiXCTCUYcq6lpMbjxkq GOWWhF7bb3Wnu0HSGDVnCsuJbfn8utvmUyuJg9Tzq89Q2sLF6u6kgvihxJ7HcBD4XayZ 8BHRUA2C8PEPd9+cpiKZuZPfY2JmpuOj4VDGkqq0xw9qUaAhI6KJ26tTXseA0EhqWdw9 G1yw== X-Gm-Message-State: AOAM531vvxkBsrEqkNjH8x+KSD/37XD/jgb+RlDCK6NP2ig0wAmAqoEd agpNL10g+Y/UWYdZ1X+lPIxyGbNIL3Eo2w== X-Received: by 2002:a65:41c7:: with SMTP id b7mr34882402pgq.81.1626849733177; Tue, 20 Jul 2021 23:42:13 -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.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 23:42:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 15/23] target/openrisc: Drop checks for singlestep_enabled Date: Tue, 20 Jul 2021 20:41:47 -1000 Message-Id: <20210721064155.645508-16-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::432; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x432.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/openrisc/translate.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) -- 2.25.1 diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c index d6ea536744..7e1aace63a 100644 --- a/target/openrisc/translate.c +++ b/target/openrisc/translate.c @@ -1659,11 +1659,7 @@ static void openrisc_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs) /* The jump destination is indirect/computed; use jmp_pc. */ tcg_gen_mov_tl(cpu_pc, jmp_pc); tcg_gen_discard_tl(jmp_pc); - if (unlikely(dc->base.singlestep_enabled)) { - gen_exception(dc, EXCP_DEBUG); - } else { - tcg_gen_lookup_and_goto_ptr(); - } + tcg_gen_lookup_and_goto_ptr(); break; } /* The jump destination is direct; use jmp_pc_imm. @@ -1680,19 +1676,11 @@ static void openrisc_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs) break; } tcg_gen_movi_tl(cpu_pc, jmp_dest); - if (unlikely(dc->base.singlestep_enabled)) { - gen_exception(dc, EXCP_DEBUG); - } else { - tcg_gen_lookup_and_goto_ptr(); - } + tcg_gen_lookup_and_goto_ptr(); break; case DISAS_EXIT: - if (unlikely(dc->base.singlestep_enabled)) { - gen_exception(dc, EXCP_DEBUG); - } else { - tcg_gen_exit_tb(NULL, 0); - } + tcg_gen_exit_tb(NULL, 0); break; default: g_assert_not_reached();