From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239367; cv=none; d=zohomail.com; s=zohoarc; b=VavJ07YQLZ8BmJziYgM7eZE6W1Zpuoz3IkJ5Lp9hQCiA78uU5gNLl/yMGihGgoF4y0JfFZPdNBNyL8lxpd48iyFYNET2ZPnXTQx1LAzIPX4YvYmtHUTrj2IylMFiqHnKZg2U6x2qHSf0Q7tnxQ0flDic8uZJLxJaNTCSWVJZBPY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239367; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=3dD79hCWh72uwMhZlBZFNfcYw08w7axPQZvzJYA+xi4=; b=JqUOej0PvgkHbB1+mfxOx4h7ZJ/4Bx0UD9hgM2IR7gXNrHDQIEF6vAEf3/9PJmtdFMe/orDd/lQ/4CX3/+xsPhlAzM6juGksnQWch9O4UKKXyk8fCRBv3/k4sMSW6jAmQbo4z/IU3W3zoYI0wozNrDIKwcHW8tt9OaxY+CBRGq8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239367963833.0095717682199; Sun, 20 Jun 2021 18:36:07 -0700 (PDT) Received: from localhost ([::1]:39122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8r8-0006Jx-TX for importer@patchew.org; Sun, 20 Jun 2021 21:36:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8pp-0003dw-W6 for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:46 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:35421) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pm-00058U-VA for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:45 -0400 Received: by mail-pf1-x436.google.com with SMTP id t32so1055335pfg.2 for ; Sun, 20 Jun 2021 18:34:42 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:41 -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=3dD79hCWh72uwMhZlBZFNfcYw08w7axPQZvzJYA+xi4=; b=pX9LHerKOlzU0GxHzfo3XshdwCqFttLfCYXxRHUcUHgxG9ititb4uFnfSoayPVi/RN XtY5EflFeOv9xmtzyGa3neeoRa38ILEHzaYVD5VUReVBWKjzWneTC5v5VuOEZRH3KwJi JQpmsfICjn5XjdedldDzhMYz0f4Sz3gV7gHtyYPXYDyEd6Ciww2vnwGXuDbUxTWSZhPO lkujm1GmCbeia96cD1kRgnGpuAbSFZPCEezoHsKPBJCp6qcDijSwkMCXE+Pc9CRYeacT g1TOjnpq9TSodZciwvkJ1mVoKy7YHmDBez0djqIxl+T8mb0bGhHdLhIr811X27LzkBgi 14+A== 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=3dD79hCWh72uwMhZlBZFNfcYw08w7axPQZvzJYA+xi4=; b=s+c675jPt44RTzw0VY4b1JW0RGLcM1etOddcYEmpR4WctyUsaJ1P23TWeSTphOwz9e nz+iGTNKaA1+mLPiX9H5GqKSf0mYsamxNwo6k7TlSAsqypm9Aj7tMbyhZYWMApRfuDpD 8MvfImT7vllCQG7HKfTdT1l6qTzSOMlWM7+CgCb9s8oW3XUW2a+fIm888Bas/nKdXQLa b3hH+wTfW+HxyygA6W/C+5x2CeUrtc5/UhxKMOvFczt/oBI+0Sk1DpJC4rRHS37T30ex 97i3+zBy1HzIw7Ymz7uBzJdtsaAxxiW7bcfUlXvpF2L1QzZmxsq8OQRnfYgNw3dUCFzB 87rg== X-Gm-Message-State: AOAM532fhmSUkJMIQCoXHq/RPMCwx4MONB/VlWtRM5jfG1uTEzjRzQl8 JVmMmVGQaOREzDtqCx7R18KKgTXqJlcEEA== X-Google-Smtp-Source: ABdhPJycIOLbl5idwi2RUj35ORB7Cf86qOBQEU6stw1U3K/vfPj/g2NtRhVplB9vdaDYj4MwNM7xww== X-Received: by 2002:a05:6a00:84d:b029:2fb:3d61:51dd with SMTP id q13-20020a056a00084db02902fb3d6151ddmr17157711pfk.11.1624239281573; Sun, 20 Jun 2021 18:34:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 01/26] accel/tcg: Introduce translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:14 -0700 Message-Id: <20210621013439.1791385-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x436.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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Add a generic version of the common use_goto_tb test. Signed-off-by: Richard Henderson Reviewed-by: Luis Pires Reviewed-by: Max Filippov Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/exec/translator.h | 10 ++++++++++ accel/tcg/translator.c | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/include/exec/translator.h b/include/exec/translator.h index 24232ead41..dd9c06d40d 100644 --- a/include/exec/translator.h +++ b/include/exec/translator.h @@ -145,6 +145,16 @@ void translator_loop(const TranslatorOps *ops, DisasCo= ntextBase *db, =20 void translator_loop_temp_check(DisasContextBase *db); =20 +/** + * translator_use_goto_tb + * @db: Disassembly context + * @dest: target pc of the goto + * + * Return true if goto_tb is allowed between the current TB + * and the destination PC. + */ +bool translator_use_goto_tb(DisasContextBase *db, target_ulong dest); + /* * Translator Load Functions * diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c index 1d32732198..59804af37b 100644 --- a/accel/tcg/translator.c +++ b/accel/tcg/translator.c @@ -31,6 +31,17 @@ void translator_loop_temp_check(DisasContextBase *db) } } =20 +bool translator_use_goto_tb(DisasContextBase *db, target_ulong dest) +{ + /* Suppress goto_tb in the case of single-steping. */ + if (db->singlestep_enabled || singlestep) { + return false; + } + + /* Check for the dest on the same page as the start of the TB. */ + return ((db->pc_first ^ dest) & TARGET_PAGE_MASK) =3D=3D 0; +} + void translator_loop(const TranslatorOps *ops, DisasContextBase *db, CPUState *cpu, TranslationBlock *tb, int max_insns) { --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239532; cv=none; d=zohomail.com; s=zohoarc; b=fEzqd6rX+HMzbcWwhgFYBtFKI6M7dOoiptCryzGqM9W34ay8kEyaTF7rJsOEgaVaPMBpgJOAwJp5Ov5KIjKig58aPngrIoEXZvtNDCS89LkNsXvD102SsBFd1ZpcRsQDorq66+n0gQNYVkp5oRmVTBa/GZNSlAfo59l/mytMRJA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239532; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=N8g+aqSIVx1gl+cogu+CC6dpxUuqUQpSlSSilhD6d5A=; b=bK4XUnmHWP7MTeMxUZSEucZeVlqKB7nyXn0Z/m+AaKmIbk/M236zmd1xfNdo7cJckav30JZJGfGl/x0yRSZJzLOj8J2+yKcIvmQ2qt3TfVfBVvSGw8nVhdsDvdb5LZdwnSZWEmU9jt2R6G7s4XLUOnvXchUZUIbMpCxTP8ENkjI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239532906148.9109361855841; Sun, 20 Jun 2021 18:38:52 -0700 (PDT) Received: from localhost ([::1]:47716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8tn-0003eq-MY for importer@patchew.org; Sun, 20 Jun 2021 21:38:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8pq-0003eK-Qb for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:46 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:37756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pn-00058Z-HV for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:46 -0400 Received: by mail-pg1-x52b.google.com with SMTP id t9so12822723pgn.4 for ; Sun, 20 Jun 2021 18:34:43 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:41 -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=N8g+aqSIVx1gl+cogu+CC6dpxUuqUQpSlSSilhD6d5A=; b=LV2ilcqQXl3yoBtJxClrtrEJZquWSmfBxWuCV63iW3VeP+l+QEkf+w11XgYBBFQjUJ hdKb5hRYfNes4A4CquRGr4FO5eGHUHlm4G/QoZMSvkfCrGjqrFWlMwgZxnLRgrZZX9KO Jg3q6ulSOdYom3xvt21aEA7Iht/4AlOH6HIXzmS/kJgvPjr2LJ4BJwjY0H6/p1quii7O W1JUg7MeUkcj9beoYdUcKg4nxyfA6xY+Ixg27uzqRNzaZ1YxfWkhIkBcvpfWk8pNu+HO Wi35iNJj4bMxbIHQcfUsDH6Za28pRD9OWDMouwAWowF/D5MU7UmqvfrsWDMAySwFk3YB wnLQ== 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=N8g+aqSIVx1gl+cogu+CC6dpxUuqUQpSlSSilhD6d5A=; b=bMmYfLv43ppE6MmeAYP632SXujGHtLKwp6J3szkIDzSWygsDXenNiJNEgfJO8MGKfq Xzpr5aFOU5iuWNXlxXqJmagLC9wmAaLjwVuZ3zsYjWGMuC3EeRvmQZNyl0X08L4QXKfK pnz22n/zedoa+fgwI61aqxYD4EQAppQQ2P3zsbnSXYOWByGHjmWlP9Rd3sbkIfX8+wBR sWdmsEg/vlZbfd37LqvaRYVvkkFuZXX0O0eNLehwMUvtJy0x826ld2S13OCGC0DwmfLr 6xhyIubzNmZx2vF4oZRfTIQCKTuTWAmPcyRBduqv8YrPKMoPwqWy8JLNAaWvW44rXdWp 7Apw== X-Gm-Message-State: AOAM531acAAZoiwstC55rhXji3a1GMQY6+aOVdZVKHOY9wUDnoc2wn4T GtfzLB+WllCuTSKa8UKkD/4t9+sRl3azbg== X-Google-Smtp-Source: ABdhPJws38Cplzea8cGUKAI0U2QS5xV3A64yRqD9Mzsi+pkFyVEVT+yB0vLAQmibyC6tDETXKYbn4w== X-Received: by 2002:a62:d447:0:b029:291:19f7:ddcd with SMTP id u7-20020a62d4470000b029029119f7ddcdmr17030953pfl.54.1624239282158; Sun, 20 Jun 2021 18:34:42 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 02/26] target/alpha: Remove use_exit_tb Date: Sun, 20 Jun 2021 18:34:15 -0700 Message-Id: <20210621013439.1791385-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" We have not needed to end a TB for I/O since ba3e7926691 ("icount: clean up cpu_can_io at the entry to the block"). We do not need to use exit_tb for singlestep, which only means generate one insn per TB. Which leaves only singlestep_enabled, which means raise a debug trap after every TB, which does not use exit_tb, which would leave the function mis-named. Signed-off-by: Richard Henderson --- target/alpha/translate.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index f454adea5e..70ba4a67c7 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -450,19 +450,8 @@ static bool in_superpage(DisasContext *ctx, int64_t ad= dr) #endif } =20 -static bool use_exit_tb(DisasContext *ctx) -{ - return ((tb_cflags(ctx->base.tb) & CF_LAST_IO) - || ctx->base.singlestep_enabled - || singlestep); -} - static bool use_goto_tb(DisasContext *ctx, uint64_t dest) { - /* Suppress goto_tb in the case of single-steping and IO. */ - if (unlikely(use_exit_tb(ctx))) { - return false; - } #ifndef CONFIG_USER_ONLY /* If the destination is in the superpage, the page perms can't change= . */ if (in_superpage(ctx, dest)) { @@ -1271,7 +1260,7 @@ static DisasJumpType gen_call_pal(DisasContext *ctx, = int palcode) need the page permissions check. We'll see the existence of the page when we create the TB, and we'll flush all TBs if we change the PAL base register. */ - if (!use_exit_tb(ctx)) { + if (!ctx->base.singlestep_enabled) { tcg_gen_goto_tb(0); tcg_gen_movi_i64(cpu_pc, entry); tcg_gen_exit_tb(ctx->base.tb, 0); @@ -3020,7 +3009,7 @@ static void alpha_tr_tb_stop(DisasContextBase *dcbase= , CPUState *cpu) tcg_gen_movi_i64(cpu_pc, ctx->base.pc_next); /* FALLTHRU */ case DISAS_PC_UPDATED: - if (!use_exit_tb(ctx)) { + if (!ctx->base.singlestep_enabled) { tcg_gen_lookup_and_goto_ptr(); break; } --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239705; cv=none; d=zohomail.com; s=zohoarc; b=IYfJQXLl3d4sNxX7q2a/K6ErVscO8PiBqdnuqG3d6WQb7w6/wmYavFucIfGzVgaT3sr3ghTXKGqEP5pDfZh8FdG4STgeAVXCF2p41vxmJMt7dpno47wVjwfuh1Nb7aKSNByj1sF6lvHC4SXHhf3JjSjQ6GRT3jvksAmqzMYrF5Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239705; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XmpHG5qWHga2DrUxm66yiT1xDZZbA3TthH2EU3CwRBo=; b=dyebXqW/Ro2FinnxtP6+grD3bbqdOZfQrOrWlu2kcb5Sg+5wHr9JWWj3OyhZLzDL0huYJMTIGtT90oCdHUxzi94nMWq54zcs7QOGeEXyHEEdUyz+vW2JhqU9JkLJ5pSVs9IxKaInvV0e04fAEOpFDwjbKNMREHFtbuizUqapXHQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239705728421.56545614986317; Sun, 20 Jun 2021 18:41:45 -0700 (PDT) Received: from localhost ([::1]:56002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8wa-00011C-HJ for importer@patchew.org; Sun, 20 Jun 2021 21:41:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8pu-0003iJ-HV for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:50 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:39635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pn-00058s-Vg for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:50 -0400 Received: by mail-pg1-x530.google.com with SMTP id w31so12830908pga.6 for ; Sun, 20 Jun 2021 18:34:43 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:42 -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=XmpHG5qWHga2DrUxm66yiT1xDZZbA3TthH2EU3CwRBo=; b=xylRNmWbryrU3eyR/TMxLe00WWDmc0rbCZu2gTQXoUkRQCRg0+/SctiCCGQ/YEPC9w eAdwT+cjOhfQyxmG028poOZMJGUJlZo4HRBn7DmaZPFGKiKBW9UCI4kLxhtY+I/fgl/J TsDhaNG7RawYYgnpqz4aX0OG7nYV5PLGmM1QyAyu6pXHYYu9ZQTmHbfFDDsidhcGf29E xCIJX4y1PQ4j1ZvS6mS4n7i6WwnwEkRaJeqyCIx1qGfAJrau3uvADCwmqfma4OoPU/YP TyWELAVbMRCkK/V/UTYeG+HAAvqheBObfglGTqzo7522I0hQ1vKTLRrhyog8dr2qjXrI 8T/g== 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=XmpHG5qWHga2DrUxm66yiT1xDZZbA3TthH2EU3CwRBo=; b=UOMCOT6Lqm/CrIm9YJxZwbqPYi+70Oze4f8TkfUoU40MRhgyQIySjzu62uHsCmf5eD aUfGkNOVccjrIWYjTIJl/fpLYDfycupavdJeYLsfylL4Uz6uMrq5xpcppv1Jl2h/7fJM Q8jSW73LWxz1tRHJaMgGWxdRu7Unl8jzkd3674qYQgOflidM7gD0XZ7fg+1jNwBiA6oG sKydQUU5dl9EfRifwqapJU4KeyOtlNpuEamrTuM4XeJ9r2rxJ7U8sh4L0qi1PsVyWpY9 GXzQNdd9GyXIbPmc0SqIQI1B+LiDShkH/OojtYicVJ7MuiTDHnhzSBdDSd7lm5QgymP8 aEPA== X-Gm-Message-State: AOAM5310lU+a6/aeVQrrKru8NW2yuJcytAkoI9wKqiztDEdjAgEnu8rk q510NzxkV4NYFHugLAv3MHY2K389esF4Dg== X-Google-Smtp-Source: ABdhPJw3mYg2/r5k7NxXaQdrI03ZjAUKbG2oURGUfa7Ar4M9XoZCfSoMco/rPsNXbHAWSxEp1Me0gA== X-Received: by 2002:a63:9f02:: with SMTP id g2mr21617381pge.141.1624239282769; Sun, 20 Jun 2021 18:34:42 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 03/26] target/alpha: Remove in_superpage Date: Sun, 20 Jun 2021 18:34:16 -0700 Message-Id: <20210621013439.1791385-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x530.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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" The number of links across (normal) pages using this is low, and it will shortly violate the contract for breakpoints. Signed-off-by: Richard Henderson --- target/alpha/translate.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index 70ba4a67c7..6ea19a1d4c 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -439,24 +439,9 @@ static DisasJumpType gen_store_conditional(DisasContex= t *ctx, int ra, int rb, return DISAS_NEXT; } =20 -static bool in_superpage(DisasContext *ctx, int64_t addr) -{ -#ifndef CONFIG_USER_ONLY - return ((ctx->tbflags & ENV_FLAG_PS_USER) =3D=3D 0 - && addr >> TARGET_VIRT_ADDR_SPACE_BITS =3D=3D -1 - && ((addr >> 41) & 3) =3D=3D 2); -#else - return false; -#endif -} - static bool use_goto_tb(DisasContext *ctx, uint64_t dest) { #ifndef CONFIG_USER_ONLY - /* If the destination is in the superpage, the page perms can't change= . */ - if (in_superpage(ctx, dest)) { - return true; - } /* Check for the dest on the same page as the start of the TB. */ return ((ctx->base.tb->pc ^ dest) & TARGET_PAGE_MASK) =3D=3D 0; #else @@ -2916,7 +2901,7 @@ static void alpha_tr_init_disas_context(DisasContextB= ase *dcbase, CPUState *cpu) { DisasContext *ctx =3D container_of(dcbase, DisasContext, base); CPUAlphaState *env =3D cpu->env_ptr; - int64_t bound, mask; + int64_t bound; =20 ctx->tbflags =3D ctx->base.tb->flags; ctx->mem_idx =3D cpu_mmu_index(env, false); @@ -2945,12 +2930,7 @@ static void alpha_tr_init_disas_context(DisasContext= Base *dcbase, CPUState *cpu) ctx->lit =3D NULL; =20 /* Bound the number of insns to execute to those left on the page. */ - if (in_superpage(ctx, ctx->base.pc_first)) { - mask =3D -1ULL << 41; - } else { - mask =3D TARGET_PAGE_MASK; - } - bound =3D -(ctx->base.pc_first | mask) / 4; + bound =3D -(ctx->base.pc_first | TARGET_PAGE_MASK) / 4; ctx->base.max_insns =3D MIN(ctx->base.max_insns, bound); } =20 --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239531; cv=none; d=zohomail.com; s=zohoarc; b=manRq4d7h45PdwFbrVzDz29AayCce8PoHYpqvzdCzB/KZ8OfCeYbBAIUg3ZJXy86mL1S5nzQoryaOR9k+d2MUFoIfl40mMfwcpRToai9OIcKMTYz+DM2gcr3hjoixSsghwWXFnR5TxBZSAdju9toGFIx+dXkWZ2NNd1oAvayI5c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239531; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6WQ3bnQo/skjw94EgsrmvIJtusx9rxJm6Wr3acFcG08=; b=RK96WE+EbvsAdLtrarxUALkjv+8CtShEAMcB9XJW9vfR4mKqD4H2lgPrqG959CpoApIpYZcQodVTZelgXrXEp3YsIcNL0Ttlfn+ff7gJnL/QGUhJa8ydJxS7x35YiwLCgWyAzBQ2IXjIQA+fLa1cEgfFbThjgeqw3b4kqMzZDhI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239531913988.5600185548722; Sun, 20 Jun 2021 18:38:51 -0700 (PDT) Received: from localhost ([::1]:47558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8tm-0003Yn-Og for importer@patchew.org; Sun, 20 Jun 2021 21:38:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8pq-0003e4-8g for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:46 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:42886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8po-00059Y-N5 for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:46 -0400 Received: by mail-pg1-x52f.google.com with SMTP id i34so7202404pgl.9 for ; Sun, 20 Jun 2021 18:34:44 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:43 -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=6WQ3bnQo/skjw94EgsrmvIJtusx9rxJm6Wr3acFcG08=; b=KRhJJj2xrHqG0+pPyEIHgjis6Odgl5PSBgwwPYxuRREaYVPHGC9SgbHihEGiXbY4/G FPbHD+Jstgzs3cL4Bevb9G7hm8v1i+DSvCgoWpMY3uLF25C6mq+XqSnUFBqnDuJ8QnBU hm76MvLA0975exeHvHzpSka4pOPA1V8dDr0Ihqy+ti333Q+0RP/v0j529qIEAf0GwtAB i0CVwGNUoX3Sk5gSW5JeDf3rPAfrTIDPst8WI5OxOL5cu5y0BfuhPm1ni12UvcDqKejc RX7Bb5+oT3QgwVz2uHG6GbLVSRMBTk5oRXEbzmVn8VJEHJhg9kwwWjkykB696bpolEJG /0Ww== 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=6WQ3bnQo/skjw94EgsrmvIJtusx9rxJm6Wr3acFcG08=; b=bfO3Q2WYkxfx+TCD9ot2Fwny9eQEPl7iIIK49u2/MIB7GAeJ5yIzUDo8SSRV+zZmi5 8GhyQcIZ9EjCEwHyhmA3Ky4DeKSjgTQNc14Aea9W3I+XhSc+CnXbikfj8YiXDLyQ+wIU jzJVRm+8A5caBUuonoGCIN3shTE/kgYRyaiLxfD+9NRpOARPA1sFNF/UXLVA86HqQRXm EgcQrbWY3Ry3MvjRw7u8HZ9mdBMgdxLI5/ugc3XjH9ZtWuRRKrbewI9CYAMw/eFodiVL axrFguIRLOBwMoM+mAvNdPsNGdDuUqVwvLCZ+HYVSG8b4as0ajVxE3zcrhKpTXi4rSC3 FqHA== X-Gm-Message-State: AOAM531tyEe2kJqEj8g1b9YyDhj+g9JYs3Ze4vSOO96vzvAdhpMhQu// WqHeHUXd5VBKXk5JzL3mp4RSCzebFoZ6+A== X-Google-Smtp-Source: ABdhPJzLid/eN8r+W2I0SDtHGe4CU1vEhpMMjTHtWZSuGPYmuWl6+tHgZCQAmqC72Lw86HFhbOa+Lw== X-Received: by 2002:a62:76ce:0:b029:2fe:f4fc:b2db with SMTP id r197-20020a6276ce0000b02902fef4fcb2dbmr16844933pfc.12.1624239283448; Sun, 20 Jun 2021 18:34:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 04/26] target/alpha: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:17 -0700 Message-Id: <20210621013439.1791385-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52f.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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- target/alpha/translate.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index 6ea19a1d4c..1aa6d24d83 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -441,12 +441,7 @@ static DisasJumpType gen_store_conditional(DisasContex= t *ctx, int ra, int rb, =20 static bool use_goto_tb(DisasContext *ctx, uint64_t dest) { -#ifndef CONFIG_USER_ONLY - /* Check for the dest on the same page as the start of the TB. */ - return ((ctx->base.tb->pc ^ dest) & TARGET_PAGE_MASK) =3D=3D 0; -#else - return true; -#endif + return translator_use_goto_tb(&ctx->base, dest); } =20 static DisasJumpType gen_bdirect(DisasContext *ctx, int ra, int32_t disp) --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239710; cv=none; d=zohomail.com; s=zohoarc; b=WgkrBLWQDSMZD1R6clvWMXrsl1WhMa79ZQ4JVQoWs+wk3Lo6ku+vQr6wcAoAlQw34+xvgIyjTO4iee7YdELRifm/h7qRxR0fUQoOnfcsB7a61TwS4+VERYhzWAAXO6d63V3bNMgfFvkfionfugmcczI60aMrOhYNTBtvWfhsF+o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239710; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Fo35LiJLxzJ5QjaCRAy6ykdp6FMMYOby7BAD/sQfZQU=; b=NLTYXAgYvj9OgdLTKApvZqUgHbxiuu5TPHDAtImZG2hKHVrr400Q8uSR1fwdPh+DTdn5yGwnAuNoOd3QnU63AiNm3SaCPTfjpgd8fd2UVOEQlEUq1zoojICxRquk8vPkwV8XSzJIPZzqENKMG2rp1atLekubz35+d6rkEHGs0Fk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239710715482.81156555297673; Sun, 20 Jun 2021 18:41:50 -0700 (PDT) Received: from localhost ([::1]:56390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8wf-0001Gk-J4 for importer@patchew.org; Sun, 20 Jun 2021 21:41:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8ps-0003gy-MG for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:48 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:33771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pp-0005A1-AK for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:48 -0400 Received: by mail-pg1-x536.google.com with SMTP id e20so12863002pgg.0 for ; Sun, 20 Jun 2021 18:34:44 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Fo35LiJLxzJ5QjaCRAy6ykdp6FMMYOby7BAD/sQfZQU=; b=urnw/uyckTRcrz9lokvO8z/9sBLJsRPCjrU24bmLZUFCS3m7znSJ98SdgkIG/ejhf4 80oavddRacwR+GaMFsmErSxQ5NPIRzrJ7bbe7aa6OYkHbmrzZmL5bT/wHaC0STfGeFP8 K1IyB1ZWQONoHW8bJhUKsfafJMXVqn7tJuYTToa4Fe06PRp8AbmnHAr8lboOxfXjqkAk C0lqbYsrD+LRkOpR5a44U4selX4L+rR3ffBZR0PQXQJIFSkX7EBSpUzU4EwA1ostvGfw RaR2MRSGHiNhzuCKuHYu8Cdl1PJp/cz3HJr4C7nc+NHd5VjriqpZ3v74KLMmbYQkD3nX kxRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Fo35LiJLxzJ5QjaCRAy6ykdp6FMMYOby7BAD/sQfZQU=; b=aCluqmxNPIISgK+xfgOfnNSDpk4xiVnWBENngOkyvOQQl9IBwz8E82f8ihn+/SIcAM FOL+34hAhqt4TLIJp6HR85kZRAwpJVtJ52E1wCNbqM0yPlcFrIEQlJTOvORSrQKBRSFz HM7mE+EIM5OsnT0u/PR8c8AHVgBf+Lu5fFlhRityxPtlFHGeWiEiD7xNbnkOUdDPpSp3 oMkO2Ub82mXFjH8x4DmDPUtoIl7PYTNg1GIQ1b2PYP4956XBELoOdF2PbSapQPRQWXxh As65+V+nU8l+4TtsOlnLwurCj5DSv47zLHDNpE4HJsbjnw5UCk5afveTFdtWe+Q5TrGD UKiw== X-Gm-Message-State: AOAM533T2n62YLM0ZcLiw+aZ73AYVSa9Qu7oE94c4fTMOtf7U4fHoJin fwrcyCczXQq2qwrJMxIHILpCpuuuH+RIBQ== X-Google-Smtp-Source: ABdhPJz8UG9xmKjcrpV3qA0wDAfOhPpSXg2wa/TdRB0prhoGX6o2IOEqHK+t3TJjzHXNH2k5ic/+oQ== X-Received: by 2002:aa7:9729:0:b029:2ff:1e52:e284 with SMTP id k9-20020aa797290000b02902ff1e52e284mr16669103pfg.71.1624239283986; Sun, 20 Jun 2021 18:34:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 05/26] target/arm: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:18 -0700 Message-Id: <20210621013439.1791385-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x536.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: , Cc: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Put a wrapper in translate.h, which also checks for ss_active. The ss_active test was incorrectly missing from the a32 version. Cc: qemu-arm@nongnu.org Signed-off-by: Richard Henderson --- target/arm/translate.h | 13 +++++++++++++ target/arm/translate-a64.c | 22 +--------------------- target/arm/translate.c | 10 ---------- 3 files changed, 14 insertions(+), 31 deletions(-) diff --git a/target/arm/translate.h b/target/arm/translate.h index 2821b325e3..3a62f50faf 100644 --- a/target/arm/translate.h +++ b/target/arm/translate.h @@ -116,6 +116,19 @@ typedef struct DisasContext { TCGv_i64 tmp_a64[TMP_A64_MAX]; } DisasContext; =20 +static inline bool use_goto_tb(DisasContext *s, target_ulong dest) +{ + /* + * No direct tb linking with singlestep. + * This handles the ARM debug architecture kind; the QEMU kind + * is handled inside translator_use_goto_tb. + */ + if (s->ss_active) { + return false; + } + return translator_use_goto_tb(&s->base, dest); +} + typedef struct DisasCompare { TCGCond cond; TCGv_i32 value; diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 7f74d0e81a..ac58a86e59 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -386,32 +386,12 @@ static void gen_step_complete_exception(DisasContext = *s) s->base.is_jmp =3D DISAS_NORETURN; } =20 -static inline bool use_goto_tb(DisasContext *s, int n, uint64_t dest) -{ - /* No direct tb linking with singlestep (either QEMU's or the ARM - * debug architecture kind) or deterministic io - */ - if (s->base.singlestep_enabled || s->ss_active || - (tb_cflags(s->base.tb) & CF_LAST_IO)) { - return false; - } - -#ifndef CONFIG_USER_ONLY - /* Only link tbs from inside the same guest page */ - if ((s->base.tb->pc & TARGET_PAGE_MASK) !=3D (dest & TARGET_PAGE_MASK)= ) { - return false; - } -#endif - - return true; -} - static inline void gen_goto_tb(DisasContext *s, int n, uint64_t dest) { const TranslationBlock *tb; =20 tb =3D s->base.tb; - if (use_goto_tb(s, n, dest)) { + if (use_goto_tb(s, dest)) { tcg_gen_goto_tb(n); gen_a64_set_pc_im(dest); tcg_gen_exit_tb(tb, n); diff --git a/target/arm/translate.c b/target/arm/translate.c index 9e2cca7707..3ac7943d86 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -2511,16 +2511,6 @@ static int disas_dsp_insn(DisasContext *s, uint32_t = insn) return 1; } =20 -static inline bool use_goto_tb(DisasContext *s, target_ulong dest) -{ -#ifndef CONFIG_USER_ONLY - return (s->base.tb->pc & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PAGE_= MASK) || - ((s->base.pc_next - 1) & TARGET_PAGE_MASK) =3D=3D (dest & TARGE= T_PAGE_MASK); -#else - return true; -#endif -} - static void gen_goto_ptr(void) { tcg_gen_lookup_and_goto_ptr(); --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239374; cv=none; d=zohomail.com; s=zohoarc; b=OgGtzzVhlcz6m9N6aa+s5opIxRnLevdoIxnJT0aWUuBWFALh7BGiGqmKB00k6qRD9yaT+hLOPxeEw3bwP6BgGX0u07lNHKQfP28iquqKWEFg/emOzO8i/b1OR+NxdUEadnFW0QUtQeQcIHdoTO3SURzB6LEf97Oke87XxnI7mVw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239374; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=8W3E8oUQSB677QQyABV7B4p2F0hPm4epmS7TTIJ96Bk=; b=B9fZ4Iuhgg7rimJb+Txrscjh2rFLIqNbCD/r67LBnQfW2ItnUqa5ZfbibGNx+nluf+1Sd/pYbmS9S9sZY5t1Ypsu7/HBbQPAeU0MosZIrSW2D5hkYicRU62QQ+a2TJyNOlzWFQR+poaiL8wz8yduPRolRNsvk0AaxHKnrbPvG9A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239374775196.7782336378374; Sun, 20 Jun 2021 18:36:14 -0700 (PDT) Received: from localhost ([::1]:39548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8rF-0006bd-Mg for importer@patchew.org; Sun, 20 Jun 2021 21:36:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8px-0003n4-24 for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:53 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:39638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pp-0005Ak-Pg for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:52 -0400 Received: by mail-pg1-x533.google.com with SMTP id w31so12830945pga.6 for ; Sun, 20 Jun 2021 18:34:45 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8W3E8oUQSB677QQyABV7B4p2F0hPm4epmS7TTIJ96Bk=; b=M4I3DRen5KFnW0x+9OukwYD1Je20YCMqH2ORkp0fb+Iv733BWZSOx4gvsYGQyTxIOl YCx+pzgDbunXrsoAe6eY9cvLj6QFIkKguZh+7PYLgQLUAOEqukAMZQBC2V+iALATaD0B ETdMJly+BLzOAQsO0FHxHcZLdkLcUxcCXnRBLuahKWhYQzwnH4X080/JjOOGnw0O6Am9 t7o2tgJiPl8/lAkQYNCvhc9SZBDyYmEGDiVzCjKPHE+MOK/cExXbQYpYtzmRJapQ8+4n eMCkNaV9B7xaOUnCMdCtaARPxu/3FYDtRHWo8fYsXIMb8VoAArV6o5LX5pijWCJMrEtQ rBLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8W3E8oUQSB677QQyABV7B4p2F0hPm4epmS7TTIJ96Bk=; b=rPcXR1KTRMy0xl3wSw0b8RJYWY2zV4fRPsqsQ9L95H9va+YL9kxAeAvdiodlYl5ttb 4d7DwXpQy/xeB3M0P3ixg7q+cjCaPjtoRMk9eBZ8Ydtv10st/yO/+fo7TFkEeLf3V7Mk cydtPdEPrkWer0zPc34YwCZXfiIYbRuorgs7PRn0C0xB3ufzU2kgas/2pGJZgZOPvbQn DIMSVtx13FHHP1AJoB3IFtKDHd548uYPoZUBhvanco2/Z7XbLjJ09LSo0H1hNMevm+TO 8rDCvvhAx3e87/Qxe5S/Ui4Jzz5Jars+VNcJf7G8dRu7TJcCFCrRKVWzAZTfFGBhl5yA m4Ww== X-Gm-Message-State: AOAM532r2iBQJIhuDkm6qEfIa/64ZHbp3i9dsDqISmUjRqmKcKxR+MKr L+89RZ5fZNdW90XGmFEauKUTevn8eSw4NA== X-Google-Smtp-Source: ABdhPJyaLHO5MCLNhnWIyCn36Thx+tXk51c0E4uHH7r/+P029An1hH2+q1OTM+aUvcy+xJWCNOzByA== X-Received: by 2002:a63:da0a:: with SMTP id c10mr21433072pgh.255.1624239284611; Sun, 20 Jun 2021 18:34:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 06/26] target/avr: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:19 -0700 Message-Id: <20210621013439.1791385-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x533.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: , Cc: Michael Rolnik Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Single stepping is not the only reason not to use goto_tb. If goto_tb is disallowed, and single-stepping is not enabled, then use tcg_gen_lookup_and_goto_tb to indirectly chain. Cc: Michael Rolnik Signed-off-by: Richard Henderson --- target/avr/translate.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/target/avr/translate.c b/target/avr/translate.c index c06ce45bc7..8237a03c23 100644 --- a/target/avr/translate.c +++ b/target/avr/translate.c @@ -1083,14 +1083,17 @@ static void gen_goto_tb(DisasContext *ctx, int n, t= arget_ulong dest) { const TranslationBlock *tb =3D ctx->base.tb; =20 - if (!ctx->base.singlestep_enabled) { + if (translator_use_goto_tb(&ctx->base, dest)) { tcg_gen_goto_tb(n); tcg_gen_movi_i32(cpu_pc, dest); tcg_gen_exit_tb(tb, n); } else { tcg_gen_movi_i32(cpu_pc, dest); - gen_helper_debug(cpu_env); - tcg_gen_exit_tb(NULL, 0); + if (ctx->base.singlestep_enabled) { + gen_helper_debug(cpu_env); + } else { + tcg_gen_lookup_and_goto_ptr(); + } } ctx->base.is_jmp =3D DISAS_NORETURN; } --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239920; cv=none; d=zohomail.com; s=zohoarc; b=NGYeBvCR1oTrI0NQKHT6OwnQwsgDjuXDPYTpk40pLrpaZ7txzjE6+F5wf1OvgccYiHPqsJq9DCD6z//TprSG1AjJUeebpv1tUSmD6bP+L1RDSUAengTQgtcKm8HADtvHCaB/IzATBwQJagRPQYaHw9ddn1g827wtiKLimQeFUyI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239920; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=jRMrTx4NopqOKJx2Uk7lglqxDnltwjXqtnzEu6kn91s=; b=d692Rpj+lfd5Ssm4Nea8K4Q/R9L7knVHCyvR4j8OW91qgBtDKK7Gack8Wy0qGgLwolBGEdhrTsHrhAwIxvojJHhMMl/p+Tuv6CxaaSNEuZN6apkr5bTyTnnGxuC4Z1cGjllLXkbrZjYNexc40JPf6K6EcCe6vHMtwbAG1iMh2LQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239920360109.96797039065314; Sun, 20 Jun 2021 18:45:20 -0700 (PDT) Received: from localhost ([::1]:38654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv903-0008Pa-9p for importer@patchew.org; Sun, 20 Jun 2021 21:45:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8pu-0003ii-O8 for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:50 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:34815) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pq-0005As-Ba for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:50 -0400 Received: by mail-pl1-x62a.google.com with SMTP id h1so7663215plt.1 for ; Sun, 20 Jun 2021 18:34:45 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jRMrTx4NopqOKJx2Uk7lglqxDnltwjXqtnzEu6kn91s=; b=lmzWe61B2HYcthxnMJUxKtS2qgp07znoEMfMaNOpIIbbliJ77Ln21Vh7fajq1DzPfB e4v3lcSrqRWEDnboFxYspTG/QaP4d+WaR9zbYq6pb+blkaOCLMfxt0E5JRnDSohoxfu9 xtEnVO8ndDwiOYwZsRET+PvyHzwio8S3fmJgbbGevrrkn22xmvkuTPJOTlHshx8eGZBi yba+KykPsYPe6ARSOONc9sey7ZfJUt6vKw14Wt4OJpRkQXTrQbSyDPVcEZ546mlC1VWZ HfmjDWIJKxP/HjJJnggwSN6NUBILSbx+c/+gTQiqQsIzJ6wGq++Iw899nST8knX/cAkh wfUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jRMrTx4NopqOKJx2Uk7lglqxDnltwjXqtnzEu6kn91s=; b=QgkGEXYlNYfSoSo5iFVtClQ3kjB2h4csKANs2oUsLdJjSkhCrprPFmTeiHdBpdfMf5 wmeOwjqvodzGDboxtgZAkuGlv6gDEUVhHcaPT0Zy4qdZXPUH1Q1SaamkxLtMKVALGGK6 T71oDVVhvTDVoYO5vkAaed8RitD6YjtbGLTCoZ/uqpndGcwPrey9+bqw8f4rfvZZf1Rw RCmtv/kD0sspWQeGc1Cd1l7MFdv+ZE3fYiR2REaf0X/GOB6s3nXgtaPzjjhxOGdenHmh xDRE0XfRhybq49C/jcZaWxyEm07vU6yGLROwemUNSUkEpQFSCwbo26mF9staRdve1Fla 1TUw== X-Gm-Message-State: AOAM530wXIiZxliyUXIpLmzwJksqMd8wwUMr5A4lUeB95O21vH+0chsI Emu1sj4RvlBT3Nl/jrkydi/Yxtp7OV9Low== X-Google-Smtp-Source: ABdhPJyFLDQM+I9q6LC3YSL7ig2j8thaebvsGftuZViBN5ukhaX11/p/+/qLsbKSYwNlu/a+9nkvwA== X-Received: by 2002:a17:902:a981:b029:116:a139:6054 with SMTP id bh1-20020a170902a981b0290116a1396054mr15453997plb.60.1624239285064; Sun, 20 Jun 2021 18:34:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 07/26] target/avr: Mark some helpers noreturn Date: Sun, 20 Jun 2021 18:34:20 -0700 Message-Id: <20210621013439.1791385-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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: , Cc: Michael Rolnik Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" All of these helpers end with cpu_loop_exit. Cc: Michael Rolnik Signed-off-by: Richard Henderson Reviewed-by: Michael Rolnik Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/avr/helper.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/avr/helper.h b/target/avr/helper.h index 8e1ae7fda0..4d02e648fa 100644 --- a/target/avr/helper.h +++ b/target/avr/helper.h @@ -19,10 +19,10 @@ */ =20 DEF_HELPER_1(wdr, void, env) -DEF_HELPER_1(debug, void, env) -DEF_HELPER_1(break, void, env) -DEF_HELPER_1(sleep, void, env) -DEF_HELPER_1(unsupported, void, env) +DEF_HELPER_1(debug, noreturn, env) +DEF_HELPER_1(break, noreturn, env) +DEF_HELPER_1(sleep, noreturn, env) +DEF_HELPER_1(unsupported, noreturn, env) DEF_HELPER_3(outb, void, env, i32, i32) DEF_HELPER_2(inb, tl, env, i32) DEF_HELPER_3(fullwr, void, env, i32, i32) --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239847; cv=none; d=zohomail.com; s=zohoarc; b=JEmkYU5WVaaBlADs55Rvjog5XzGWeraanGoK8pHldFbIS/06vqPweAZzpGJjMjibpY2xtiBRZpl8Lppyp+EKz/uQiVo3jqD2hyBRLM2GgXu9XJs9E+2zyWRTk/+xJnIbK9iTQWHvATosUPR1wYffOJCDfnU5SqrfgSe+A/dTmYo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239847; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=rxkDq96k3ZTvlscbiDlbIOM0PupnkbICBsbxK69yAjc=; b=cXYlGO/4t5HXlfQT6f1Lp86WAGmk2VEzfR8OMDnwyydKk1CHER6yHPUpdmdvMhoVPniiajw5W2Y9qvtelbLH5YEw3Aia3DotRDLBSd5eugNjVukq67vhphsO2Fqs1kUgewjTVA4a3aK02G8eAMGCGvsP5r0ZUfrNSX/jvwFdFHs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239847042665.4479036530402; Sun, 20 Jun 2021 18:44:07 -0700 (PDT) Received: from localhost ([::1]:35312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8yr-000673-Pr for importer@patchew.org; Sun, 20 Jun 2021 21:44:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8q5-0003tm-Gs for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:03 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:41617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pq-0005B2-TV for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:59 -0400 Received: by mail-pf1-x429.google.com with SMTP id x73so12390110pfc.8 for ; Sun, 20 Jun 2021 18:34:46 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rxkDq96k3ZTvlscbiDlbIOM0PupnkbICBsbxK69yAjc=; b=kDLZmVfWV4wsFpjzZJ1pENqklXd1jt0r9hUjELIfbjAwyeYjcAclqz1gTLDWIm8elc O58M0MW4+5khnk2t0P2/tcA5R2ZsBQ03l3T4oQy8FtgHSNKYqgJJwWlQYLvKNEGHGOi8 Vx/AYgTs789FSN6kwig2nshEaIxhDh9PQ8/GJxSh2FUPhfZJ/ve2WaDi7NQBf8U0h783 DR08/GV5n7mwjVmOusXzZk/7S2g9Rbl37PEqVR0RyxiElyE2OIVKy9/W/Rz4DUOWg8R8 Ch562A/I6fgbDTOReG9Qu3pf+5qfDxdRtQQXfB8Yq3XVcqqE/K155S8p5WAbA2rl7Gqc xPeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rxkDq96k3ZTvlscbiDlbIOM0PupnkbICBsbxK69yAjc=; b=DkgFleD6zu0GL9K5T2kuYnDNk6TuSkqK2/E04cZii3IFYEWFVj6A1LeoF+VkXFt7KW 3SJyk/nvuwZezx2R5SAsqkktqMIZGOzjESBlX9wOZZ8q7PPutV7pM6XzYF5cV3MyY6pU mtT4Hi9r2v7AiwUsXqytVT+zUNNXJzVvChSvQivqUmY/G0fuRVzQj2zsRj6EzxcVA+UU cuHYykrlPGl087jLOklO37h5xIztzgPgpuR88DSwLw88tNYBDXPPxbrzKoE+uhcOoba3 PQNquhuw4jQvUcwrrTAhfdwiODKZ8++NcjpEXqEzRql3fM3DcR9h1MmiIjSHKbgvZLBi 7Ilw== X-Gm-Message-State: AOAM53122lNSuHnGMncwHDkyYuZAD4wCyIjiOs8L6PoAnj+AgI+iop9L PZfRk9R7QPsRHXe9DlzA1bguKeDyo0ahcw== X-Google-Smtp-Source: ABdhPJxOP93WhVqSN7tCnTvhlWVR9AkHioK19yqG/129O+smaezhG1GCmNIAnxq/39YjQEEYgRLFUw== X-Received: by 2002:aa7:8702:0:b029:303:6c92:dc8e with SMTP id b2-20020aa787020000b02903036c92dc8emr2663686pfo.63.1624239285642; Sun, 20 Jun 2021 18:34:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 08/26] target/cris: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:21 -0700 Message-Id: <20210621013439.1791385-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x429.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=unavailable 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: "Edgar E . Iglesias" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" The test for singlestepping is done in translator_use_goto_tb, so we may elide it from cris_tr_tb_stop. Cc: Edgar E. Iglesias Signed-off-by: Richard Henderson --- target/cris/translate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/target/cris/translate.c b/target/cris/translate.c index 3200819f32..33ad76c0a8 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -517,7 +517,7 @@ static void t_gen_swapr(TCGv d, TCGv s) =20 static bool use_goto_tb(DisasContext *dc, target_ulong dest) { - return ((dest ^ dc->base.pc_first) & TARGET_PAGE_MASK) =3D=3D 0; + return translator_use_goto_tb(&dc->base, dest); } =20 static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest) @@ -3275,8 +3275,7 @@ static void cris_tr_tb_stop(DisasContextBase *dcbase,= CPUState *cpu) * Use a conditional branch if either taken or not-taken path * can use goto_tb. If neither can, then treat it as indirect. */ - if (likely(!dc->base.singlestep_enabled) - && (use_goto_tb(dc, dc->jmp_pc) || use_goto_tb(dc, npc))) { + if (use_goto_tb(dc, dc->jmp_pc) || use_goto_tb(dc, npc)) { TCGLabel *not_taken =3D gen_new_label(); =20 tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, not_taken); --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239374; cv=none; d=zohomail.com; s=zohoarc; b=XMdzzAot5YE8pXfhBy7lcs7ZBHtSY4l7t2o+Wv0jXbAjLLtKr6Oz68g/w1EaMGBDXCiYc3qnV4SDUcnEbtPQiYJLkRcfreJh0Sj56Wgkjl8VCgMlcM8fxsL17NQp16FQeWVbOgAZmrFfbELKOjxMmsXZ2tiyWhDSpV8Y/RXv/Z4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239374; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cH+sdopDqg3AA/XmKjvzj97BFIKh2FfG1/i/yI9Y2V4=; b=X7dwdHoqXYdsWTBeQaEzuEAzZJFizO7wJtIBsAT8XDoklUTq9QFnq8w3qUAzIvOTC7Bo53d+gR20xpCLbz+OLUhdxOGMOR9Px2QI43Y1hZOcqj64HFFKro88jSX5yZzpX7ubyq76bigeDyeOD8/l0E8KLza9Fh/G4Ox6+i6Fi8o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239374686820.2361929768176; Sun, 20 Jun 2021 18:36:14 -0700 (PDT) Received: from localhost ([::1]:39644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8rE-0006fC-GU for importer@patchew.org; Sun, 20 Jun 2021 21:36:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8pv-0003jv-M8 for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:51 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:45824) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8ps-0005BB-DF for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:51 -0400 Received: by mail-pg1-x533.google.com with SMTP id y14so1402908pgs.12 for ; Sun, 20 Jun 2021 18:34:46 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:46 -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=cH+sdopDqg3AA/XmKjvzj97BFIKh2FfG1/i/yI9Y2V4=; b=zk4xhm4feVb+xK3F4e11ZLuwU7VudoskD1fKArb/lYaaXA3eyYQ3Iy6zcdnWp8n69a 33rVAamHYpZ3h+fgIWZVnPL7LtqP8mmpZeLEFYO/MesIn8TatVl7aB2n9yM2sNZwcaU2 9eXgKEnfY4tGibFDF/kGZXZ0opDUxX7wueoCBTAQViN8Pj5E7n/PRrzEOwWqdmlseVDy 6DT5C5ilXVE/MvWHViRjlR7yAtmhQOaB+8OKUbfVL5nLHEkgj62VwnrT97q1vecbBgB9 l8ISh1bz52wxYM/0CSbqdKffT02J0mEfN2mGYQhhjhA7L7TK61yx/1MdQdoONiAsRWZe 6d9Q== 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=cH+sdopDqg3AA/XmKjvzj97BFIKh2FfG1/i/yI9Y2V4=; b=mumcvV7srwwKE2cBEQSk9NhpEPKwhAw+BTh3OdNBo6bBkkeWoIWlr3YG4usIKZ3jlJ rUkp1HZpbeqZMnZoAxrANpUux9Ak1uH5pq0f6QgrQ2bvcCq2xHMG51jTGoY1m8/wjoUv P9FzVrwI5CGB0pK2+9C3NwpNOHdsS9wsm8fkSYAe0SZtp609kk5igYcjqOKkjAkfHP0g wkMvGpz8i+16GNc+AzYZecX0rtSPM/m5uh7/eKNOL2a04QCD+TooWMK60MQvWKzrSkcI 7zXbdqYIrHbeSjjPZRwLJu0TxYIXgmXlWg9J2Ysh8k4x3lNJoj7tRcKapLI6dqjOiNaO OQRg== X-Gm-Message-State: AOAM533C9YhtJZve6wkI7vIhLIwrQH2xEk/S3NeULbC6/xnPR8j0frgU Ciyqy04QywkD7rhbQ3xwrsmAE7qACaw1vw== X-Google-Smtp-Source: ABdhPJzJxptMwBtF0caquzPKlUuKVXWKFbI3xmd1zjpEz9PhafHgLPta7hf6hC6hPbFYnEWKCRAn8Q== X-Received: by 2002:a63:b60c:: with SMTP id j12mr21757569pgf.393.1624239286198; Sun, 20 Jun 2021 18:34:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 09/26] target/hppa: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:22 -0700 Message-Id: <20210621013439.1791385-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x533.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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- target/hppa/translate.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 64af1e0d5c..952cfe09a6 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -817,10 +817,7 @@ static bool gen_illegal(DisasContext *ctx) =20 static bool use_goto_tb(DisasContext *ctx, target_ureg dest) { - /* Suppress goto_tb for page crossing, IO, or single-steping. */ - return !(((ctx->base.pc_first ^ dest) & TARGET_PAGE_MASK) - || (tb_cflags(ctx->base.tb) & CF_LAST_IO) - || ctx->base.singlestep_enabled); + return translator_use_goto_tb(&ctx->base, dest); } =20 /* If the next insn is to be nullified, and it's on the same page, --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239543; cv=none; d=zohomail.com; s=zohoarc; b=KX6bgoG00Lqd5TmUHCb5j6+YbH7A/cqzRL29LtLmYsk9vAGe/AqJxw3Cno8fBz3rnEwWguNd/oiyAlS8Zz3ot4hRebh7NmvGFwmIo60dCDgt0/bcm8KtTau1ZfitJyWtQqSk+PscHlHTXL4HfNNThJCLrS7N4z9ckz3tCFram+8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239543; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=GMkVnaoY765gCHKs02WDkaTKMwEGdS0qsbGYx4hCN/s=; b=iO1zw+DsrQ0tb47swx02NfXHBdPJ8lPWz2MuIsCIg/f+MsbG5ixgXT+epRgvH0T+CW4xYr57/i46PBSVya0ZsJiAIHZi/FbaqgT+c+ZDWBfdgOc50WNJCTvc22+Yxs2oK6M9pS/26zVsYp1zxyd3N4IZThadWCueiisTN+77aTY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239543020440.00643695857184; Sun, 20 Jun 2021 18:39:03 -0700 (PDT) Received: from localhost ([::1]:48236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8tx-00040B-W5 for importer@patchew.org; Sun, 20 Jun 2021 21:39:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8q1-0003st-PE for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:00 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:34590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8ps-0005Bw-DL for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:57 -0400 Received: by mail-pj1-x102a.google.com with SMTP id g6-20020a17090adac6b029015d1a9a6f1aso9328353pjx.1 for ; Sun, 20 Jun 2021 18:34:47 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GMkVnaoY765gCHKs02WDkaTKMwEGdS0qsbGYx4hCN/s=; b=YYsO7F/cWLfhAMJMd/DPnzTFb1cA/kwTdhlJmoqgipATMcreq1eVCnld6T2txfnKNO ArRI4lP9tahNnReRW0YoZ13W5yJyJKy7a/l4rN5hpNyQHANM4yWOuDmN8pG7pRujcGgf lOFMCvKRFkMLh0gwOMhovR9/DiIXsieDcQMZkBJpl+3NGmavjLT0NwkUPoAV25K1d+nu UFE5pH/cK5iYzN7+/nY0PRjJK4pYOm0pwpNBxhH3BfakPaJ3ckwbr3tUA8gv83OGrReq UpRtXJdLbg70nqgy+0xSu12M61TnpXEdTzn6Y4zNDVzYpYTLPErPqf0eVFLen+u+7vMI te7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GMkVnaoY765gCHKs02WDkaTKMwEGdS0qsbGYx4hCN/s=; b=RXExHktBYki5EKeICHMgqW050o7sRQjYR2Z444UeDpaX4ylH9XhqyGfqsqcCJJE490 bIpgTXoqrQoVheeqG+fbewyHK8yNVfvpMUe0bUiKRMdBqR6IkrO3DbJclMK0P5AUEWhh NyzeVNusnwtE7UuQkhTTeQMFDWnqOyaEHDTcvrE9nv9HkoK5EHqbwnyBtOmnlnRangUh RhLzB0ThpQ2Or64vd+dbX2+TsrCvRxbvjkmvf5k741m4SPDby1Quz6nEyRBuxbuwRkQY 2K6IZqh4dRvI0aM+zJ4bnJbwlqsuxxW4a2wJUaqdNuNrFYWocX0f10/LJnIvky2Z9/1X z6hg== X-Gm-Message-State: AOAM532VSAEgjXNu8NFPR3hz2T1+4/AoiKhFj17hbo6nlgavgodTt/R+ lp7in2Ebd27J4gJ8zbesD9XikbUDzum9jw== X-Google-Smtp-Source: ABdhPJz4fF1mhDOiFfgzaqmlThPEUHfIcmwQY8USQBXI59QSNWZ3KjDJAxL+QUWGaq37ZmVn0UI86g== X-Received: by 2002:a17:902:8641:b029:117:7a89:b42 with SMTP id y1-20020a1709028641b02901177a890b42mr15669659plt.58.1624239286684; Sun, 20 Jun 2021 18:34:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 10/26] target/i386: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:23 -0700 Message-Id: <20210621013439.1791385-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.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: , Cc: Paolo Bonzini , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Cc: Paolo Bonzini Cc: Eduardo Habkost Signed-off-by: Richard Henderson --- target/i386/tcg/translate.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index a7f5c0c8f2..e47b220ce7 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -2314,21 +2314,11 @@ static inline int insn_const_size(MemOp ot) } } =20 -static inline bool use_goto_tb(DisasContext *s, target_ulong pc) -{ -#ifndef CONFIG_USER_ONLY - return (pc & TARGET_PAGE_MASK) =3D=3D (s->base.tb->pc & TARGET_PAGE_MA= SK) || - (pc & TARGET_PAGE_MASK) =3D=3D (s->pc_start & TARGET_PAGE_MASK); -#else - return true; -#endif -} - -static inline void gen_goto_tb(DisasContext *s, int tb_num, target_ulong e= ip) +static void gen_goto_tb(DisasContext *s, int tb_num, target_ulong eip) { target_ulong pc =3D s->cs_base + eip; =20 - if (use_goto_tb(s, pc)) { + if (translator_use_goto_tb(&s->base, pc)) { /* jump to same page: we can use a direct jump */ tcg_gen_goto_tb(tb_num); gen_jmp_im(s, eip); --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624240047; cv=none; d=zohomail.com; s=zohoarc; b=RtYxGpScy1fBuFYsMcyf5WaLJufzxz8mm/IARalmlL0jIbefnpD8gdsu1W7yTUkg4TR4ftU+m1NataYTCxKbcmbUNMZ/ZCQKtnjatpRBcnzOBFjQsyQL5LJWAyL70WidYr/wn4+v63I6hmyr/TwoUhQNqB5GKdNFjkvSiYFbsQ0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624240047; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=GyMXFOHuukBywR7FyV+46rTH8YDdZbnYXS3wX0EtO3c=; b=b+K5KlHx7hgrRTHaDKS8tTjEQOYIr0b1jgV8bHPAM63sXFb6rl/uFFt6TASRkQ8SSquhxBx04p+BFaOBYbXZbmh1df+FKGM40sFV51YmIPhw65W3wVaxie2qxNTfBCR8hxeJH6RVbMDrETOFhFMOFvsbScw6Mf4iktYFbm76ZPU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624240047961153.4209090472184; Sun, 20 Jun 2021 18:47:27 -0700 (PDT) Received: from localhost ([::1]:44946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv925-0004NG-Ua for importer@patchew.org; Sun, 20 Jun 2021 21:47:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8pw-0003me-T7 for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:52 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:33751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8ps-0005C7-GI for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:52 -0400 Received: by mail-pf1-x42b.google.com with SMTP id p13so12464264pfw.0 for ; Sun, 20 Jun 2021 18:34:48 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GyMXFOHuukBywR7FyV+46rTH8YDdZbnYXS3wX0EtO3c=; b=LhGPeMbPnbEOW2I3m5SJzeWAzM4qVQHV271Qsleb4tROvW/HRxjXI3pcHuGfxot3R8 VSnFp2Jq46jHw1iaOpVTrgfAmg8mH2fIAi8AzYfGJMC+ZBaTnkgg2w0WNnuEPbVCqoA1 NOWLHRgDimmEYS754Sl2l/n13KNbbRhcrQtvucxo4u4Fmo0sufWqpWiWs/nYevQMcL+F OGWJloJ0dJfTxtUKRqHy7OtGwBHncec7R+Dtmfp6F0nu5bGmC3AZhFe8im819AskyuX2 dngcfAnW0fJEo8uYXuqMOkLaiRXbJufNn9JGXFXtMZjQx2IlWzblzpJ/blLe3NnSZ1XP UoIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GyMXFOHuukBywR7FyV+46rTH8YDdZbnYXS3wX0EtO3c=; b=gsyXWmqspYfqvRnp3iCG8yJc8/z2XRLNod3pKNWXax3UsNXM1/u/NIR/NkTBKj+3ya HD/tjT4hlZ79ThcuVKnWAwNzUA42k+6sLBk1alHHhQ95qKo46OH45IxplWf1JApM3/iP 53C7Pg0mwGSAZRFUlTQyvka0TlnXjXZEvSz40WVgi5C8g+OSLPigwCYa9D6TxtF3sC8v B0G8KmE1dBtB4h5sT65W7ZTmYb5oqZGoBCwTY8WgNdG2XaVzMpsIfEwyNXkKvsy+WG/U 5SHBmdz7mAclh1su2d7Qm2mUSnxz9cNKyYGXYeZAo1S/d8B08BNNGkmOJKPP5aZjGE/Z hQfA== X-Gm-Message-State: AOAM532ktTZWY5T4uLO386HVp9lfPdEK5Sbfo1ul9UrQzzTOs/Uo4lf0 r3gU0fVomRi1hwhRmVhnI4yCk6nyvC/UhA== X-Google-Smtp-Source: ABdhPJyN2SVfScm0egewQmXOBwVyAz8UrqHjrxTIAtituq4S9fCa9kWDeBqses+p68t8FH7x6iwf9A== X-Received: by 2002:a62:b502:0:b029:2ec:a539:e29b with SMTP id y2-20020a62b5020000b02902eca539e29bmr17017986pfe.37.1624239287263; Sun, 20 Jun 2021 18:34:47 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 11/26] target/m68k: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:24 -0700 Message-Id: <20210621013439.1791385-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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: , Cc: Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Cc: Laurent Vivier Signed-off-by: Richard Henderson Acked-by: Laurent Vivier --- target/m68k/translate.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/target/m68k/translate.c b/target/m68k/translate.c index f0c5bf9154..05b96fdda7 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -1520,16 +1520,6 @@ static void gen_exit_tb(DisasContext *s) } \ } while (0) =20 -static inline bool use_goto_tb(DisasContext *s, uint32_t dest) -{ -#ifndef CONFIG_USER_ONLY - return (s->base.pc_first & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PAG= E_MASK) - || (s->base.pc_next & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PAGE= _MASK); -#else - return true; -#endif -} - /* Generate a jump to an immediate address. */ static void gen_jmp_tb(DisasContext *s, int n, uint32_t dest) { @@ -1537,7 +1527,7 @@ static void gen_jmp_tb(DisasContext *s, int n, uint32= _t dest) update_cc_op(s); tcg_gen_movi_i32(QREG_PC, dest); gen_singlestep_exception(s); - } else if (use_goto_tb(s, dest)) { + } else if (translator_use_goto_tb(&s->base, dest)) { tcg_gen_goto_tb(n); tcg_gen_movi_i32(QREG_PC, dest); tcg_gen_exit_tb(s->base.tb, n); --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239543; cv=none; d=zohomail.com; s=zohoarc; b=m+halIEc7AFvOyzIscJSXmr1OnqvGn6t36fzTGNEwt1fVz5m/ia6tVtri6TqlBJLNEScwHtVK9KTtiG9gIIj1n+MocVqmmfgwnlpdhHXRfEbnx3vw6UMdoBjm+zVzR1WNKb2LDFUymJQZpvCbmbhu1EGTdXxkGFMScwuS9Ls6WE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239543; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=lDoRcLaC7/1E4QoRTMLY4EqhrZiViuK6qiqJLkoqpZM=; b=ERKl7IbQZb4T5tXKVkHExKITfhDQGO80db0a1+ldOCyl8ZFG/8ViWCGM9+wcnQZzkLjvuQ7quNwYh3keQxS63QrOkPBArhx2lf1JNn8G5KHXCh9R4q1ecpJmn4A0Li4fkYYU8Fo4ldJiiUoKNAVUOtf3XQNVLfMCg6+zMJeaZs4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239543434467.9250424237763; Sun, 20 Jun 2021 18:39:03 -0700 (PDT) Received: from localhost ([::1]:48198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8ty-0003yZ-Cq for importer@patchew.org; Sun, 20 Jun 2021 21:39:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8q2-0003sx-Ky for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:00 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:34752) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pu-0005CB-0k for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:58 -0400 Received: by mail-pf1-x431.google.com with SMTP id g6so12427360pfq.1 for ; Sun, 20 Jun 2021 18:34:48 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lDoRcLaC7/1E4QoRTMLY4EqhrZiViuK6qiqJLkoqpZM=; b=H6QBidGwrGYXr/4GpMfmLe4fynoP8jjiU6a0oWcXUaQnE145byLrV3YSN/NeGJlrkC nIo03mdJZqD90AlhK3eN5iiiP1LZAbCZyzZO8C1msnYH7UC0o08Zibx4IA0xE5Vr5bKL OGTpW6vwe4eeTYnXULxYpXD/amjln51VtpnE3pvndS6ElSTomPHTyOaxGnqrUv6NUlfR RO+nAW6MgEa1kHE1E2DDv8j6N4DNvDKOpmWgGfDBFJ8YHG5LHhFAtAA90vailn6kByQr qgI2YNfLrz4wRbsZrN0bc1ItOrzfzDMmtr8e5bLaVrCkxO5pOqyipDwaDn6tdRYD8xUF 2HVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lDoRcLaC7/1E4QoRTMLY4EqhrZiViuK6qiqJLkoqpZM=; b=hYjL6M1aUQQd84t+51Vg9rL6Oac1afxXJDe00DSjfUJ8YLovyuGMQzuuemswe3p48N NZ50RlOJjwCh6xgPAF8MexLdweN8gYKCkNSfR9POolSgG0OCOREJDMnIE5ZhpIqaPl9Q zffTKKlRwomDr3yST91uV0gzUn7yVHPnSJWI1tRQs8ch/E888Vs2WcInJnFnrZXFFmG+ whaMwLsTowdIjABTnm7B5rmnueiXr/7xTBmijVoTgsuKRCqJMyuMIIzQvuAYeSNVQnNw H02HBjnpMIJYQaD9H0WnbX9zR4lZo1Z12G/YbFHJfwpVoqkKFYu5sHzF/r/x8+le5T5t BnMg== X-Gm-Message-State: AOAM530yaQ3TkS7UTAz5O2uYaiK/Dhlft3KlFJAs/7jdYLaRWtHYcYDQ BtWUX3qVthq6EJFoEoLxtcsMigHISNAIrg== X-Google-Smtp-Source: ABdhPJyCHkibWk0NhXsBmA5AA3qznjpmDA/ABSe/Q/F4YeNaNuy3fuY8N/egbNDVYPQlX42O2Lla2Q== X-Received: by 2002:a63:471f:: with SMTP id u31mr21575144pga.85.1624239287875; Sun, 20 Jun 2021 18:34:47 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 12/26] target/microblaze: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:25 -0700 Message-Id: <20210621013439.1791385-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.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: , Cc: "Edgar E . Iglesias" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Cc: Edgar E. Iglesias Signed-off-by: Richard Henderson --- target/microblaze/translate.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index c1b13f4c7d..b753f080e7 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -125,15 +125,6 @@ static void gen_raise_hw_excp(DisasContext *dc, uint32= _t esr_ec) gen_raise_exception_sync(dc, EXCP_HW_EXCP); } =20 -static inline bool use_goto_tb(DisasContext *dc, target_ulong dest) -{ -#ifndef CONFIG_USER_ONLY - return (dc->base.pc_first & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PA= GE_MASK); -#else - return true; -#endif -} - static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest) { if (dc->base.singlestep_enabled) { @@ -141,7 +132,7 @@ static void gen_goto_tb(DisasContext *dc, int n, target= _ulong dest) tcg_gen_movi_i32(cpu_pc, dest); gen_helper_raise_exception(cpu_env, tmp); tcg_temp_free_i32(tmp); - } else if (use_goto_tb(dc, dest)) { + } else if (translator_use_goto_tb(&dc->base, dest)) { tcg_gen_goto_tb(n); tcg_gen_movi_i32(cpu_pc, dest); tcg_gen_exit_tb(dc->base.tb, n); --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239874; cv=none; d=zohomail.com; s=zohoarc; b=G8v9JdOXABKxDGgRj71DA7XCgePBVt49l82uIivsVtP/JVNlo/rg2qN58Ni0Rhmb/jxI25/Oxk6qud79MHg+8swFgaRKQ2fKdnGZ33Evv3zFGGmbdsAoUSV8wKWBtkrPlOmNIqhFoCGI9WvrsAWuUrGnQIho8lSif3GlRhifqUM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239874; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=qHC3jVIB4e+/pVCBe7FuoNbsxTyhoj4fhboHXtuba70=; b=h3PcDMqeEMwg+26Mkuno1wGwwrtHsOyj88ygDHu4ULAO8HD+41OvJHvjyBGzMou1BsLLQeup7W1s8l20BbSet5LFlfSVnWSNn5DHDcK5lFtJbY2LRBks7AHnNR9d4dW/X+5QebrG0uPloEmq0z36k83zKjwNkUcWeYkXr90+SS8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239874786780.7414906101143; Sun, 20 Jun 2021 18:44:34 -0700 (PDT) Received: from localhost ([::1]:35830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8zJ-0006TD-QY for importer@patchew.org; Sun, 20 Jun 2021 21:44:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8q1-0003ss-NX for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:00 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:34592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pu-0005CP-0u for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:54 -0400 Received: by mail-pj1-x102c.google.com with SMTP id g6-20020a17090adac6b029015d1a9a6f1aso9328379pjx.1 for ; Sun, 20 Jun 2021 18:34:49 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qHC3jVIB4e+/pVCBe7FuoNbsxTyhoj4fhboHXtuba70=; b=EDUnLdsHnQS5QT/SVyv+z47A8UMpFKRqMphRK/WxJNuQAp53zJVKluEUsEjcRS546C J9XSL0cWBYIhi0Fvgs/eEz54B4nlSqXQI1ugtVRVP6UwEf9K88D+KbGK63v8WH4Jdeh+ XS+yi12bw7kC/TCVgBVKfVXhZ563KZxQutFlZUMh1C3RJOjh0l3S6A2beRTV4luN6sCS QeINN0FATNWCJ26YscchYz1qyx8GjIGfHTV2s9vYCnqHY28/Q487W4W2lvx7IxCxJfW1 ocbLavUpwH5PISd7TGHWJs1d6QzjoFTFO4pn+YepKUH4FUj9B3eXWgUtsPEh2WoVx7d+ V6rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qHC3jVIB4e+/pVCBe7FuoNbsxTyhoj4fhboHXtuba70=; b=UrJ2PGJ0UdFXwLjJRIWucc5lMjn2bpxfVS9w6+tO5HEKzAoleXTOUZDGwPLwOgnaFs EO9TRaUyurzhzMGuXKtqb06D9AdN4rYVYQbCcynYt8v2s/cSR6NjJ5vG3o8s/9YZYDbX bVxYrJUTIZ0syo5WDBwYRISjTELmbvsl8+M34IwHof7NVrxCbT8utSRDApnYUMu6mDfg hmFYwJkonSHY9QSICC05RTg3XT7y9EYYDx7WJE8K1i4tXOAQAss+5JJY/p/IC8XQcJht UVvJ9faca+GXz8MFEJ2G/0UYllstR0WrcEIrB4hBqpqJt+qVlEIOpRggojOTbpmlnuUI KDpQ== X-Gm-Message-State: AOAM530/iuX3qM7poGcbpzYC3Pr0rZUeCOKTmw31ABJh9Dy3AUEotZzK wfZ9boh/wGOLqA7lqpjnR3jT9lb3sgF+pA== X-Google-Smtp-Source: ABdhPJwW0HROuVjO+RN0vaztdSGv/XWB2JoYtmPd9BnYq1KKZFqL01Qumb6/pEJbZ6LYaVJRUGs4fg== X-Received: by 2002:a17:902:b616:b029:ee:c73b:163d with SMTP id b22-20020a170902b616b02900eec73b163dmr15619647pls.30.1624239288490; Sun, 20 Jun 2021 18:34:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 13/26] target/mips: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:26 -0700 Message-Id: <20210621013439.1791385-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102c.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: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Cc: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- target/mips/tcg/translate.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c index 797eba4434..d59986b340 100644 --- a/target/mips/tcg/translate.c +++ b/target/mips/tcg/translate.c @@ -5019,22 +5019,9 @@ static void gen_trap(DisasContext *ctx, uint32_t opc, tcg_temp_free(t1); } =20 -static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest) +static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) { - if (unlikely(ctx->base.singlestep_enabled)) { - return false; - } - -#ifndef CONFIG_USER_ONLY - return (ctx->base.tb->pc & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PAG= E_MASK); -#else - return true; -#endif -} - -static inline void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) -{ - if (use_goto_tb(ctx, dest)) { + if (translator_use_goto_tb(&ctx->base, dest)) { tcg_gen_goto_tb(n); gen_save_pc(dest); tcg_gen_exit_tb(ctx->base.tb, n); --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239976; cv=none; d=zohomail.com; s=zohoarc; b=AFs00kBpFKgS6P5Ldn99jdjhNsXYT5TzDW53BcDGItu+cARjQMKN9AKKgwkAAxRi6Hu7D7d1KkeMIUgy7oOuqTovNh1hQrmBLokzM6GR5cZrZ6/aQ9fNmUn2fBPBFufc2zDoDTu0wEhXfX7B1T+dCIs2QALRsPsrrgLVAxXIaww= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239976; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=wtlIXfVTIDAcxOMm3S62qcgJG1xzrj7M5573CnR6cAM=; b=DM/oz9mnRxSVQ05D2lNBE2MhiVaMe56kmNqny/gbzPy262jiwb0ectUjt13SEwP3H5uPXb2JHdCkG+VYLezw3shYfULEgmDauVnw91PKKmQHTxMe+whhB3ZALqQnOyax7qsvdjLRh1UdAjHytDVIIsMge1utSArLH3OLTySySWo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239976860187.08494374227814; Sun, 20 Jun 2021 18:46:16 -0700 (PDT) Received: from localhost ([::1]:41576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv90x-0001zc-Md for importer@patchew.org; Sun, 20 Jun 2021 21:46:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8q8-0003wn-6i for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:05 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:40466) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pu-0005CX-AQ for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:03 -0400 Received: by mail-pf1-x42b.google.com with SMTP id q192so5839041pfc.7 for ; Sun, 20 Jun 2021 18:34:49 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wtlIXfVTIDAcxOMm3S62qcgJG1xzrj7M5573CnR6cAM=; b=ZPxUmzqV8Qx/mMGuqNNL0Yd/NspN+N7734ReQNBEblNncmLWjNIpE0d0GmwHUFSMKv 7LaV7ehjWMRJLnWrSvyu9qLaZwnnZv8ZWCfxCHLUepMDN3YjRuuL5Zu9ov83cXNYku3S O+3TKyk5MHO5Pgple5C9N2B/PhGh7KiNpTeNX082tJeDsqioYImjC+rVjP6DC2P+Awe+ WtoVvT8Rm2Wz/qcHEUXrGOndLBSk/LhrkKd7GsxAUAy3KFN6oulWb6o3N+k+OdWJcwyC s6FrpotJgAH/Uq0IVRbzoY9IZdFct6twKEL6saTkTwQuyjuAFkoT8i5ocWHaCi2T1ZVC A40w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wtlIXfVTIDAcxOMm3S62qcgJG1xzrj7M5573CnR6cAM=; b=jpW1U2c9Dets1suCVCkaUH4mccOW0AjML2HnO3Vcoy/yu5OS/rdgN+zsFq5UOrHLa1 WviqSP58Yj47I5AdoRVNxBok112lRvplJfL4KNUXgJFk4Ltg6SLzCDSAsrFvn+q4MLFF hiYFAaCk4FPHpmQMP51dfTdIo4RIk8KyqdXuZ9BmmTbCDRDDP9wYMR3K8GCw6PWvkqe3 +w7Wnf48k/pzO8FGRBTptp+qX7ffHhjRho6RJuMXTtDgRYrfY7m2UFzN9Gn4pfzJg9E/ HYBm2H17KDUmw8GOMzyi7WoNRigIKaBhr5bGnpVZ3iJRL0eo/O9oWScVXqUQsLwvFV1N wXqw== X-Gm-Message-State: AOAM531HP+obZf8rj6ltaZ67EV/u1pGEOvSeViNVN4wtnIOQGlKEgwxx PqduuGQZCdiry7yIXCV3MKX5BW3jhb371g== X-Google-Smtp-Source: ABdhPJytCFhVLC2rpVF7pnoWw5WHW1FGuwn8KBS83QRcJrCQv+/QJYjDCnNYSiOmXv9w/KxjeiWHyA== X-Received: by 2002:a05:6a00:810:b029:301:f08c:6b0d with SMTP id m16-20020a056a000810b0290301f08c6b0dmr7830708pfk.8.1624239289106; Sun, 20 Jun 2021 18:34:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 14/26] target/mips: Fix missing else in gen_goto_tb Date: Sun, 20 Jun 2021 18:34:27 -0700 Message-Id: <20210621013439.1791385-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Do not emit dead code for the singlestep_enabled case, after having exited the TB with a debug exception. Cc: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/tcg/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c index d59986b340..99827ee740 100644 --- a/target/mips/tcg/translate.c +++ b/target/mips/tcg/translate.c @@ -5030,8 +5030,9 @@ static void gen_goto_tb(DisasContext *ctx, int n, tar= get_ulong dest) if (ctx->base.singlestep_enabled) { save_cpu_state(ctx, 0); gen_helper_raise_exception_debug(cpu_env); + } else { + tcg_gen_lookup_and_goto_ptr(); } - tcg_gen_lookup_and_goto_ptr(); } } =20 --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239717732889.6781530956298; Sun, 20 Jun 2021 18:41:57 -0700 (PDT) Received: from localhost ([::1]:56680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8wm-0001Sm-DR for importer@patchew.org; Sun, 20 Jun 2021 21:41:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8q5-0003tn-Hc for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:03 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:35416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pv-0005Cd-Ct for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:01 -0400 Received: by mail-pf1-x430.google.com with SMTP id t32so1055498pfg.2 for ; Sun, 20 Jun 2021 18:34:50 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=y+A+nkJp2mLCVWp/nN9qk7znE4gchviqhiQyiO9wFNI=; b=eEPW0PV6a78eUSDanE2/wuTEz1mk/7zCcpdaOFY7DuejgymgV6+AGycj6fweELofWm 5jvCqEXx7M3xsa6DO8+2KzzeuaxIfv20n45aE0b90a4MZSoLglwjFbBoysh5c5rdeCSR oaCxblSXly5vhn7FgRP9rzEyZuPtws1GAas8Ps5FwD5oWJx+umk27ZqJiVPUyeDY4mqJ ggikpKsx/ZZoCebnbeYrKj9LwqBvJPlq4r7EKTENTEJ8cmIZ2TfwCPBI49In71UGl7tb Ol50oTGm/afTouVQ5/iYyEtPIVWV4Te+m9jlTMwg6BhGXiKqZ7TCJIC4D8DNQTuXjxbT MHDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=y+A+nkJp2mLCVWp/nN9qk7znE4gchviqhiQyiO9wFNI=; b=c2qx49K8d8TYCzwvX3RtbCcEWZ8ou3kFnj7oDk1svs4iwKzG0WGjmr0gAu6VJCjrfV PotKUZ8r2wvAv08aw3YF+e6IUOJLsOAUTp1x+ij9IkcNIZbkYCfK9q2bMJ+UAZBaGGhV I9ynNpfBQLSvMKqDw9QCTWavtU5PBcUNpkK0mMyf3tT2F+sFWZzsRiOGTHX1pRcv9hur HtYgKNm3613gWOaSZ+9d10PI1OKwJqvUpW6DGMFkbvS/r80y/UQvzpgsENlb5dZL1JDd 4JgS3VHMPUyRFNzXBEfxx1HAC46jxcu72w/RePqOXJ1TpT2BtD/uBAzy4urYiPUBJkdF J4yQ== X-Gm-Message-State: AOAM531uPTZZS+2G7kyHSVhZb045L3S0gfiBak/JtMHBjPfqmVtWG1eq 7EFS2WeJYkuYDPL+zuiqUA17kFXmAb1mLg== X-Google-Smtp-Source: ABdhPJxZLn7E0eRDXjsalIzVyTGsni9Lm++ztB2d3IAY4IcMtIiVW/6i9QL3jtMM1ehXg87tGMQVZA== X-Received: by 2002:a63:5fc5:: with SMTP id t188mr13033677pgb.10.1624239289727; Sun, 20 Jun 2021 18:34:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 15/26] target/nios2: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:28 -0700 Message-Id: <20210621013439.1791385-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x430.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: , Cc: Marek Vasut , Chris Wulff Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Cc: Chris Wulff Cc: Marek Vasut Signed-off-by: Richard Henderson --- target/nios2/translate.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/target/nios2/translate.c b/target/nios2/translate.c index 276643cee0..2e2c83f3ad 100644 --- a/target/nios2/translate.c +++ b/target/nios2/translate.c @@ -150,24 +150,11 @@ static void t_gen_helper_raise_exception(DisasContext= *dc, dc->base.is_jmp =3D DISAS_NORETURN; } =20 -static bool use_goto_tb(DisasContext *dc, uint32_t dest) -{ - if (unlikely(dc->base.singlestep_enabled)) { - return false; - } - -#ifndef CONFIG_USER_ONLY - return (dc->base.pc_first & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PA= GE_MASK); -#else - return true; -#endif -} - static void gen_goto_tb(DisasContext *dc, int n, uint32_t dest) { const TranslationBlock *tb =3D dc->base.tb; =20 - if (use_goto_tb(dc, dest)) { + if (translator_use_goto_tb(&dc->base, dest)) { tcg_gen_goto_tb(n); tcg_gen_movi_tl(cpu_R[R_PC], dest); tcg_gen_exit_tb(tb, n); --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624240210; cv=none; d=zohomail.com; s=zohoarc; b=AJJVCAM0UnKtpeWVwYOIFcrD7M4k4iwUW2Nmqzr8HdOyOn4gdfnhzDxZ+6UUbI8AgaiOWgok5zCc5p5apRDmv5f9NkDm7PHXiuKDYkQf3GgeJo47SgzxLOPsds+fm+58riJ7qkjCqdrKT4PaWqtGTNrLUY+SMwd70i5fJ1NgQn8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624240210; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zAnCrHtff6jPTMINAA/XQ8amtOalFE7ZmPKzxH7D+ug=; b=it5ZJJzkIfDkfAluCwZGfjGrR/ueKZs3pUZDyuMzlJ0nq2Lgh+iGfJ4hKfM/bnx8Azo7BYiCKXE4EptLVBmiE0AbIAr6vQwg014SRsYP+D0KQ6/evS+xOx/fO2Funi1uxNidG/WTV+VgeyuXBXww7epnks9YheNzK/QPMZZUPmg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624240210700361.0357852900406; Sun, 20 Jun 2021 18:50:10 -0700 (PDT) Received: from localhost ([::1]:54092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv94j-0002AY-Ji for importer@patchew.org; Sun, 20 Jun 2021 21:50:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qC-00041R-Ch for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:08 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:42580) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pw-0005Cz-5G for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:07 -0400 Received: by mail-pf1-x42c.google.com with SMTP id y4so5415847pfi.9 for ; Sun, 20 Jun 2021 18:34:51 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zAnCrHtff6jPTMINAA/XQ8amtOalFE7ZmPKzxH7D+ug=; b=DQX6H5NH4cdN8kyse3Yo0cyN0dcwF7TEuK4vsiLjL46JHZkD6OuwtGEq1qnMQDeZGW SFvRGpZdgc44acLwZMrkVlUBQG4+nA8dFo76b/GmPqcm16xqbf2ihM+m8ZUqEuaQURGP 0FPCme85EE6jeq9gpndi990EUydGqkK+ZXGu6WIfbGfAi/XQeaNQbo5isBDCGqFSzanL l9K8fxV+35mGlTfuU3FQDDmpidSDFyEc6KBUY8KL6db3v/MbsEaSmoMyITJp6lGIKUKR 6xIJFW4Jf30+b+Y9HdVGpmuYtEmTnwq4l9kT7h9oe/WjPb0jsMDhfhrq+f+856dYEsL2 wXdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zAnCrHtff6jPTMINAA/XQ8amtOalFE7ZmPKzxH7D+ug=; b=mTxznlGGOyLCCPpPhr5Wzb+YJs8TVeZwFW0x2+FQgznj+GyY0WQB/OLat6a+LDXTBF cxs2ToehLPP6a6HcP/YbTyvI2QVy6NnBy959ZZ9mJFRJOtf7onPyTqQKt9gNHMBQIIzU rDtNeoDqnuj6zB9JC1LRNJKlx9DsivsMQHSmgGLQDmyeHBcb4CHJSQXNpkJJRbZAHqco b47mg84lf48B7+wjHUsBCrW0MC40SgCREMgW7GrZGndVHiVH4DpHac9FoS2rV2oQgGVk qXaIc5BB93okEIgRb144hVlzmu/j+L5C7Pfb5VY/KL6TsDcxOAqcJNGsqs6skexZRkSc /fTQ== X-Gm-Message-State: AOAM531uG9wLeT1nvSFszdDfYm3jTetlub/19AhtZY06XYVU5AuwTITO Eg41CvN47P1YwpRW0/c4PUm2KYqNW8BkqA== X-Google-Smtp-Source: ABdhPJwgLG5kfumbUJv3RTjxnmWt7fd+KB7JJfujuil9qm/yGmmzkAohK0fhyoT87ypvrAKSXza+Wg== X-Received: by 2002:a62:9203:0:b029:2f1:e21a:c545 with SMTP id o3-20020a6292030000b02902f1e21ac545mr16815929pfd.60.1624239290347; Sun, 20 Jun 2021 18:34:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 16/26] target/openrisc: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:29 -0700 Message-Id: <20210621013439.1791385-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42c.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=unavailable 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: Stafford Horne Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Reorder the cases in openrisc_tr_tb_stop to make this easier to read. Cc: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c index a9c81f8bd5..2d142d8577 100644 --- a/target/openrisc/translate.c +++ b/target/openrisc/translate.c @@ -1720,16 +1720,17 @@ static void openrisc_tr_tb_stop(DisasContextBase *d= cbase, CPUState *cs) /* fallthru */ =20 case DISAS_TOO_MANY: - if (unlikely(dc->base.singlestep_enabled)) { - tcg_gen_movi_tl(cpu_pc, jmp_dest); - gen_exception(dc, EXCP_DEBUG); - } else if ((dc->base.pc_first ^ jmp_dest) & TARGET_PAGE_MASK) { - tcg_gen_movi_tl(cpu_pc, jmp_dest); - tcg_gen_lookup_and_goto_ptr(); - } else { + if (translator_use_goto_tb(&dc->base, jmp_dest)) { tcg_gen_goto_tb(0); tcg_gen_movi_tl(cpu_pc, jmp_dest); tcg_gen_exit_tb(dc->base.tb, 0); + 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(); } break; =20 --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624240099; cv=none; d=zohomail.com; s=zohoarc; b=VDHUtLRbiuM+CNkkTaK+ngR8WJEuA94vciuQHMsLtfIBI/ABVLUKn2JpbVEJ5IL6Z7nFK6YskjGbG7k7XQ8eiNHwMhZQriTTtNrPyuEXnjiSSwzspUsSZD+Da4H9oZrph3epGSlgo5eqk4coo3iz2ADae1OvEag4cbwMCm0Ddpw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624240099; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=PwYY5dSeWSmGGmBhQNMUtGlmdzOhLZK9MJXdyKrBIlg=; b=gZh1W2w9DPafsggZyfHOg5/ou1xs+u0RNDQ8zQWbApcAJsyMxMvvWgh+rw5ki8QdfEAUXKhdd4Qr14+EPFyoK58berca4x1PEkPhsaUL3922853hA40A/SHZEWcdRkh98n6fWSlSpqUs7Cc9eEoeYVxM4bPf9cY8mT7PdIqSnwg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624240099222812.409156121352; Sun, 20 Jun 2021 18:48:19 -0700 (PDT) Received: from localhost ([::1]:47814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv92w-0006LI-8M for importer@patchew.org; Sun, 20 Jun 2021 21:48:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qB-0003zL-63 for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:07 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:46713) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pw-0005DX-5W for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:06 -0400 Received: by mail-pg1-x536.google.com with SMTP id n12so4084344pgs.13 for ; Sun, 20 Jun 2021 18:34:51 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PwYY5dSeWSmGGmBhQNMUtGlmdzOhLZK9MJXdyKrBIlg=; b=Wbm4H0VzQw11w3Vq0kX838OumjE6H4WhVGjVWwnW2cyh4ZVch9vgj/GqfqyqQqbsiM WjT6Fjhy2jSJ+URdpvdh0JWjSZ6R/m9xETSzeXMoFH3ySaT+Fk+an+E6LP86o12DJPYJ wEAJvQQyJn4m7Ap4IWIIYZpjXGtDTMUx9cXli5OpCUdZTlJNyFaWyU0/zvsA2L3N7JY1 nQexC+dugIgb8Qf2nlM3nKTG9KEowVnpqQ54Y6KQhnauKvlHN0thIhQRbB5T2dKKLTiP it5iZFaiW+Pl3l0HkCYh9nAi8qYECL31s9uBgS/JeDNLY5gvnazcoMD6uFjH/mlg2Bmv ALEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PwYY5dSeWSmGGmBhQNMUtGlmdzOhLZK9MJXdyKrBIlg=; b=HjsDhGMpoMeqCGoAH7vtg+nSdKRdzjxXOcBWQrAqrn4Yq7Abw5v5+ijlJrStwY5/T/ 2we0fHwMT1/alDMJjbNKE0qOA/HWtgk8CYZXO127nzizVkPsre5VVbNTI3QUPP+Lo7h0 sslDxBhcPcoseTc79RFcoiJ9N/Xe/+APdUIo5ghqzULLJxMpNjS8Bpu8h31IRWdrZ8Y+ xBeicP6sa/qnd0dhdTH000sF3EQMrwakj1m4r5Gt6/vVaohXu9EedBu1J/hhfPtXM12f bn1JmL1754/46aZsfDhNtIS47znFgH+85stKrYBmyNGPvhRep4b77Itn+sDYuepHG1TW +jSg== X-Gm-Message-State: AOAM530+ZyPorz9Q39Dvrw/717us9rI1lnLH+N6y4/Q5YJWJoMOq7NDG EvbPpBsAqYbZAvbE61XcGOJnXrbbUB2ADA== X-Google-Smtp-Source: ABdhPJxpo5Ls7gjQmpvfqt4boXJ3CA1+U2E+oXkwuthkmME6jrXrDkg9HUtEYe73qBYed9GyfrI7Vw== X-Received: by 2002:a65:438c:: with SMTP id m12mr21743183pgp.425.1624239290794; Sun, 20 Jun 2021 18:34:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 17/26] target/ppc: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:30 -0700 Message-Id: <20210621013439.1791385-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x536.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: , Cc: David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Cc: David Gibson Signed-off-by: Richard Henderson Reviewed-by: Luis Pires --- target/ppc/translate.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/target/ppc/translate.c b/target/ppc/translate.c index f65d1e81ea..0fb09f2301 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -4302,15 +4302,7 @@ static inline void gen_update_cfar(DisasContext *ctx= , target_ulong nip) =20 static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest) { - if (unlikely(ctx->singlestep_enabled)) { - return false; - } - -#ifndef CONFIG_USER_ONLY - return (ctx->base.tb->pc & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PAG= E_MASK); -#else - return true; -#endif + return translator_use_goto_tb(&ctx->base, dest); } =20 static void gen_lookup_and_goto_ptr(DisasContext *ctx) --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624240104; cv=none; d=zohomail.com; s=zohoarc; b=OhTwfj0ot7f1G41QKjhuare3kCw8E06BqO16a0OaqPJSFIJUO+q/lLgQiky6ONLNCPdipn9dpJNk1nqGjjGBCl5jQf3blF244+a/C8c3RFSgKvGWjS9vW8gqJY3e5TL0IgwkVJyv/FCxN0sr50twqBVCKcOMY+YNvFsZu0xY/uA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624240104; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=O6AUcaQKGYp2fnjEQWNm+lyORkEWoJzEefRINwnH5dY=; b=kiF9S3PnWg3dJlCLfR5GPE1sjWw6PD95RA8EEy/AtBQYhtJjeyJYib08aWN5Ar68XgDim0ASLjAM7weZkzOAnLWXOb4jqD2lAyC+zCMFYKYcq/t44666SjbYfiJ8LsPqKhRvYH9KTGznpz6J3DIVNqyZXmAtM0b3zGoAUbgNedI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624240104911784.2526120220327; Sun, 20 Jun 2021 18:48:24 -0700 (PDT) Received: from localhost ([::1]:48310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv931-0006fg-Ob for importer@patchew.org; Sun, 20 Jun 2021 21:48:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qD-00045B-DI for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:09 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:38604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pw-0005Dj-Iz for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:09 -0400 Received: by mail-pg1-x529.google.com with SMTP id h4so1303296pgp.5 for ; Sun, 20 Jun 2021 18:34:52 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=O6AUcaQKGYp2fnjEQWNm+lyORkEWoJzEefRINwnH5dY=; b=u3xxZLScRlSx0Ro0I4YZJHaWX2MDKXN2uW7NENwfTZJofE1oDD1iwRRdEtsMD/5F6K aynU7r+1RTs63pw7s6vnwzvhRQYlijyW+x3clSgpHWzM14py2b5Sdly7She0wgnCVH1C O6Tt6dD0ajTcgPi9DKrTlpNoI8Fgo43VnPOpMZXEDw7mghtBe1iV1rO2aoU9AZl3Us2R 4BZkJaxLYAvvkTOx3B3ZV5qkuWpQaAi56ExDZmbdZxnkybQQ/CzCgqDWKrUVmCMRkIXl 1SiptWZp5IuGOPSiXHPz+M0JdCEn87lilNgrRWJRiDvrNrcCd7KJoy+NduzN+EQo+Uq1 6mmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O6AUcaQKGYp2fnjEQWNm+lyORkEWoJzEefRINwnH5dY=; b=ENO6BHVqCpJmTHEqlxn2SfMPdnGlBrO6+xiTnQEv3bh8qNEu6hav+CcjJ8O+La9ZQU Xhkv2PvB0IbJiSXwNaci3aYQOoCsE8z5Ri5xgLNneioQI5/XYuRcwUc35p/3809WG/fJ nNtUqHCuhtun5wmh6MuekhRtL3bpzA4QYEzPwVgjMOfHGXE3yMhjB93t/hAPP2+Tr47Q Mtai/+Okh7W3ZoLFVwjJcLCDdKqkNk2wWsFTGC3SwS6jMcQ2v+87OMDRi3n94nIo+n0/ iS3aKFp4D5XYMDSFiFV2e1T3tbQI09N+06eKW+hEFpucOV4Jo2NdoX5Iq1EcWlUm3OMt Z36Q== X-Gm-Message-State: AOAM5324BOQGItk/1VJnbgQT+qyvG0dGlDemd0/LrTa4Ohv9iV72jEv1 mYeU870/5dC7TrpnMMqlp0ibs8wL5k69gg== X-Google-Smtp-Source: ABdhPJyCiF/MCYb4UxvuuNFNQogMfa8yO/+vQm3xZChwByl5pzc63fYIuTj4d722Twi/Ym+cAIosmQ== X-Received: by 2002:a63:ff20:: with SMTP id k32mr21772363pgi.82.1624239291358; Sun, 20 Jun 2021 18:34:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 18/26] target/riscv: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:31 -0700 Message-Id: <20210621013439.1791385-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x529.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=unavailable 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: qemu-riscv@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Cc: qemu-riscv@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/translate.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/target/riscv/translate.c b/target/riscv/translate.c index c6e8739614..ecd3764338 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -168,29 +168,11 @@ static void gen_exception_inst_addr_mis(DisasContext = *ctx) generate_exception_mtval(ctx, RISCV_EXCP_INST_ADDR_MIS); } =20 -static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest) -{ - if (unlikely(ctx->base.singlestep_enabled)) { - return false; - } - -#ifndef CONFIG_USER_ONLY - return (ctx->base.tb->pc & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PAG= E_MASK); -#else - return true; -#endif -} - static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) { - if (use_goto_tb(ctx, dest)) { - /* chaining is only allowed when the jump is to the same page */ + if (translator_use_goto_tb(&ctx->base, dest)) { tcg_gen_goto_tb(n); tcg_gen_movi_tl(cpu_pc, dest); - - /* No need to check for single stepping here as use_goto_tb() will - * return false in case of single stepping. - */ tcg_gen_exit_tb(ctx->base.tb, n); } else { tcg_gen_movi_tl(cpu_pc, dest); --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624240491; cv=none; d=zohomail.com; s=zohoarc; b=Rtti1V4XFlMMxlbIAXeK5OlPBIY+nvdbuusDsdhNF1V/WDu69CoRB/vgxZdQjGJtcYpbgRimqq0HfRImaWUzv6e7tvSl6FZYaUZm5hY8gEYrLfxBnGJOAwegv5MEuYHCiOEbg5viKiIP1ocwrU1pipNMrKUDoA/4wGseNSTTmg8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624240491; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=W7Bf8v32MRSYl5delt6pF1CYpdgvOX/1OeFQMhwwhYo=; b=TOWXtZ7uqepTw9zqVeMwhWalfPTGSK7Het7HDnWC+WimCfngSWO3HfT1iJDzWahfdXSTL7e85kGkTuZ0dtwV7VXRbAhySugotFwRV6okj0JFVV3Pa2sHVibb4M703JRXVv6pg5LDy0yx6+KswIS8kCwWTKwA0a/1DyfFLhiFM2o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624240491401448.3280665933672; Sun, 20 Jun 2021 18:54:51 -0700 (PDT) Received: from localhost ([::1]:36630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv99G-0001C2-6A for importer@patchew.org; Sun, 20 Jun 2021 21:54:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qH-0004IH-HY for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:13 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:41817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8py-0005E0-BH for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:13 -0400 Received: by mail-pg1-x52b.google.com with SMTP id u190so8992393pgd.8 for ; Sun, 20 Jun 2021 18:34:52 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W7Bf8v32MRSYl5delt6pF1CYpdgvOX/1OeFQMhwwhYo=; b=uPo1F653pu/v64dvBtaGFaYvjNeszL19xjF1FfzQG11B6Kh45t6gXWecaco/YQQKuf 3BCwYNAm53dsCmz47JDp4E4Njo2dYmRcLVHr/BNivtmC94WJKdTGN9ibrPrp1336jSkf MddRReDTEH+aahsLJB88H9XWC3ghItCVI9hjSnzmlUOkK6KlNJtnxzK6vP+Wn6E0NfPU n8Ehl5o7O33Ak8dIV8i0Rnslfr/N9+Zr2w0m+GAcRPWDWkTAZ/vxcLfGoYAY9Toy5/jl rC+MKhszn0pGpLaVTaxVliNsMdNi5+nK5y0xZav6oYaFxPTZGV3Mb+EVMKFdNdXwTCS7 a9zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W7Bf8v32MRSYl5delt6pF1CYpdgvOX/1OeFQMhwwhYo=; b=Ae50Xj2ry5o6WV55y3ydm6ExVzyRbAIEgizkOMBqzgYcuEiqzl8nLXujYiRDGYsBhM qJ7o5nKu+trAV+MA6myMZTXFfEQToz0+s8Mnfg0DP1KUbj8EKIYoHaMK0mH+Ax5m30et a4uGxn9FNU5AqadPYBsTLBLNIKtl0sPfwPdYpr8PpWlzJ0f97hiZv7sByuc9Fr4bdMaH /I60qZMa3T2mZ2fQ8J6UAdJqFEyEScZSSzhKie3s/fImWnScLdwhVCjaXeiNSeGC6ZpH UtC/MiVOKOCO54RA9w8ZlQALUlQ7Cx0nRL+4zlE4H+5508u1SyWB33S2CeiPdqlbyUe1 BgcQ== X-Gm-Message-State: AOAM530SY+csZBEGGKq+wdoiM1aWBRs1Te0fTHGCqasHHTM4wob/7604 rXbwaF2tLu6cW5uHgN4FL1zaOZSdqq8SGw== X-Google-Smtp-Source: ABdhPJzVL/bYWp5xLJkWHwFQyDD2XNW7G1ftZBeptpCGbwNMVPIxR4+vTxrnAxcva+xEpSG6lDexwQ== X-Received: by 2002:a63:f19:: with SMTP id e25mr19190574pgl.278.1624239291985; Sun, 20 Jun 2021 18:34:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 19/26] target/rx: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:32 -0700 Message-Id: <20210621013439.1791385-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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: , Cc: Yoshinori Sato Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Cc: Yoshinori Sato Signed-off-by: Richard Henderson --- target/rx/translate.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/target/rx/translate.c b/target/rx/translate.c index 9ea941c630..2443406de5 100644 --- a/target/rx/translate.c +++ b/target/rx/translate.c @@ -143,18 +143,9 @@ void rx_cpu_dump_state(CPUState *cs, FILE *f, int flag= s) } } =20 -static bool use_goto_tb(DisasContext *dc, target_ulong dest) -{ - if (unlikely(dc->base.singlestep_enabled)) { - return false; - } else { - return true; - } -} - static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest) { - if (use_goto_tb(dc, dest)) { + if (translator_use_goto_tb(&dc->base, dest)) { tcg_gen_goto_tb(n); tcg_gen_movi_i32(cpu_pc, dest); tcg_gen_exit_tb(dc->base.tb, n); --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239992; cv=none; d=zohomail.com; s=zohoarc; b=Zf8RJ5zrf4BXwGmJJjFH4oZS+KMfFW1uDLQbPcaL8R87RCoPFYD/T7tEe8It4snT0UOKwnocZYTmt9vHq1+922pimA9/2ZiuvRm8PLkhmBErmH1mXQQbhZdRkta7REd1YGwXWkZO6jCTC3kahom2cVMvBDsHPZhxp33UCnPxUOY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239992; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=/XHDjw4MYlw4TzcceGLn/7Fa6hqyEFYWUnUbqhZR8HE=; b=I2ic7MV3rXmmPYhj1YTZgyL5+UJRhZ5Uln9TrbpqbcFui3mQP/OW/aT6JOoySekz8B+onrzV5cgWOiXQ8f3iOjgtCAq3r4qaupcRBDKQ/pZlteCjgWBegFGTI9AHupXTrTAFcRtWgJbyeKnFmzieee/nWQKKcEWno6SAaDIecVg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239992375956.1873339772927; Sun, 20 Jun 2021 18:46:32 -0700 (PDT) Received: from localhost ([::1]:42052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv91D-0002Jp-CC for importer@patchew.org; Sun, 20 Jun 2021 21:46:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qC-00041i-Eg for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:08 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:35419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8py-0005Eh-BK for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:08 -0400 Received: by mail-pf1-x433.google.com with SMTP id t32so1055567pfg.2 for ; Sun, 20 Jun 2021 18:34:53 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/XHDjw4MYlw4TzcceGLn/7Fa6hqyEFYWUnUbqhZR8HE=; b=Dg8cqfzr9Up7ZP3euQObJVampYAhWqPdptpZqslA3J1WAQ2dPJzwuQE5f9yt2KDHux iQy8RWe6nr0wodpdSVVCB0FR7DeoxgUtQpHpZa2nPXSC8+41zEWxpw1hKcig+diCmVqt 1jCw5pUk5BHajfO7W4J+R1N9cyjzgT4vI6HfDWJ8I/emJQhfALFWFMc9/BQXQGUC9Vyf 2/uVCazf9ZDKCoW7VKanKIF+78iYwboPiI+CcS0pOdDeaKlJLUB00M19rjgjjGzLXFvL DKCw13iSQ/EzW6RR5PMPho4qo+iDQRYCNTyvaPubMUMvuYfFRZJM/tSbW1Dah5yhPEwu 3YDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/XHDjw4MYlw4TzcceGLn/7Fa6hqyEFYWUnUbqhZR8HE=; b=QYbu++cNkHLKoQTEZgXCS8x46+ayht/RLIIWJahHT/Iekv+C8mfhnS8KMJ9pYK5yZg sCNTaawOtvR+Z6bI4cA7+c1AKrCanpGWTVdfX34K7G/IxKzBaHaQWeZATcYJLlSAahQZ 7tETRbvC7TIFFq1WWsf1cmIhmHxTPbOke4xE/2Kn3WhYmC34MQ6poc7godN6evxmo6Pb QoxGjJ2nBBJxhLtL4qj/aD1jrCONT3IunVF3Gn4qUSkm4tTcjgKQ6DHV1x7ZvVM4wq4m tpPIW8K/3y63HQ2vOuVe+R++UapnkEvcJ/x++FkAiO/HeQGtCx8bSvkrVe/aIR2tYy2w C1bg== X-Gm-Message-State: AOAM530AswPFmL4gsocHqnLDiUMRd3d4USB59ymHVZR3rSr0WrC8eppq DQFS7jSlRSKDgzVfegIdAhadz+joE1snlA== X-Google-Smtp-Source: ABdhPJz2/BGhNURESYtcfCesVqV2vU07YwLDCjEuoHcos5ce5wvT6tDl4pyE5XqcSLLZwZwUW0gtyg== X-Received: by 2002:a62:ce4b:0:b029:301:ec00:eed9 with SMTP id y72-20020a62ce4b0000b0290301ec00eed9mr7864906pfg.44.1624239292580; Sun, 20 Jun 2021 18:34:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 20/26] target/s390x: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:33 -0700 Message-Id: <20210621013439.1791385-21-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x433.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: , Cc: David Hildenbrand Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Cc: David Hildenbrand Signed-off-by: Richard Henderson --- target/s390x/translate.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/target/s390x/translate.c b/target/s390x/translate.c index e243624d2a..4bb5d82a37 100644 --- a/target/s390x/translate.c +++ b/target/s390x/translate.c @@ -697,12 +697,7 @@ static bool use_goto_tb(DisasContext *s, uint64_t dest) if (unlikely(use_exit_tb(s))) { return false; } -#ifndef CONFIG_USER_ONLY - return (dest & TARGET_PAGE_MASK) =3D=3D (s->base.tb->pc & TARGET_PAGE_= MASK) || - (dest & TARGET_PAGE_MASK) =3D=3D (s->base.pc_next & TARGET_PAGE= _MASK); -#else - return true; -#endif + return translator_use_goto_tb(&s->base, dest); } =20 static void account_noninline_branch(DisasContext *s, int cc_op) --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624240353; cv=none; d=zohomail.com; s=zohoarc; b=Ra4ZR9EZjLOVNQkPulUFteL7iOkozI5MDPWfrZRZis2FH/qqmBEZCw+Xsc6Ra3XhisdAkCgEX17vWT1iaIyKSVAHdsKS1dkgJrPkVyzDLe6jpk2t0YaJu/e133DIO9529CssTDuocQooHhYoVZMLojBM0Syyk3z679rZ47+9XeU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624240353; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=fUVtXMvYWuDrfg37hSagY/JJxiueWMrq3me9HN4AB0I=; b=ShNoDYB2kIwG2K+hmL5Agd6h2L8a/4kERATZqVezYT5R/h9PVUgJC0Qu1h9ZqEVf8J3tIkCXNwXiICqkZEFpnujtZToGZHXTQOOECp5T+610N+m4cK6jD8kHpljUduLuhpWXOwbONWAO5gOVD8D9svbKG0MclFIbbMtkNvfhr70= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624240353846567.2253530529805; Sun, 20 Jun 2021 18:52:33 -0700 (PDT) Received: from localhost ([::1]:59406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv972-0005tb-Cm for importer@patchew.org; Sun, 20 Jun 2021 21:52:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qD-00044e-7Z for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:09 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:34399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8py-0005Eu-Eo for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:08 -0400 Received: by mail-pg1-x52e.google.com with SMTP id g22so12832630pgk.1 for ; Sun, 20 Jun 2021 18:34:54 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fUVtXMvYWuDrfg37hSagY/JJxiueWMrq3me9HN4AB0I=; b=cLNvt2uZGegKENyxC2T6NtqoJC2Gmdwna53SKZbJXthaqxrvd1H5y9UtwlThvpSAJp SavL7RtXqq4pRKbb+RMH2pqA8UsJ17Dy5ddEB0CADaC5Se9q5vSPPOkin5ATz0Q3Fxqy TYG5qPG8i22D59wHh6xJLh1UQxcW6F6YbIi3cmsOJQPqOduhaQfQo9jvyTiOdbxtSelI 1E+QwSBkztEyLF469esrtOuey3eTHeQn9FaZyX2fc/RIsHRqzHWqqMLxOBTkzAX7t2gN C1IKQr+omtCu0m7qj94O1cFOMxeE9RtHgULIkx5VGxbP76aj5aGykspzmm6l6Nru/zyp 6u6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fUVtXMvYWuDrfg37hSagY/JJxiueWMrq3me9HN4AB0I=; b=lkX7dwAfCXVq5lqsoGf5itKjWp6omKKovCcCEGfvDfBOotKktIYjaYq48rPMDBEipd RSqdepxnINvrugIrcqPYFHCbJzRLZjrDFKSk4lgNgO9PfzwgWzGYNARGop0GkFfwH9up adeEPmfUKGhnvlxbbY7e/T7GphOvLM5y31q7tBZTBQKXQ/Vj390WtVkPIyeeklrdJYSg sJn8u1SmRBEO5oTXi3VYpEbB9kOgasquEiBQmqsgQunWmMN6Uw2/zxfi2gbkZLhy9EaD ae9GfeIm7pmNFNNuDbvg6Af7hqKAUDMy6n1wu0i7OfYIHyEjFpVHI+So7j3Y357O38c1 5B/A== X-Gm-Message-State: AOAM530hIyDhpH4s3BwYuKoynFa0LQtIV6v/vXOrpsdu/yCUrPUSOIyr oOVg+Lw9gizHw05BTEk7TuaH5jc9ENdOow== X-Google-Smtp-Source: ABdhPJwem2ZjZARF2zfOOpYlP0UyfV5ik4SK2+nF4jbvDBS4Co6WJ8JJYbPo6YyoQVm04hvr4cPNUw== X-Received: by 2002:a63:2011:: with SMTP id g17mr21520113pgg.195.1624239293202; Sun, 20 Jun 2021 18:34:53 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 21/26] target/s390x: Remove use_exit_tb Date: Sun, 20 Jun 2021 18:34:34 -0700 Message-Id: <20210621013439.1791385-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52e.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: , Cc: David Hildenbrand Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" We have not needed to end a TB for I/O since ba3e7926691 ("icount: clean up cpu_can_io at the entry to the block"). In use_goto_tb, the check for singlestep_enabled is in the generic translator_use_goto_tb. In s390x_tr_tb_stop, the check for singlestep_enabled is in the preceeding do_debug test. Which leaves only FLAG_MASK_PER: fold that test alone into the two callers of use_exit tb. Cc: David Hildenbrand Signed-off-by: Richard Henderson --- target/s390x/translate.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/s390x/translate.c b/target/s390x/translate.c index 4bb5d82a37..de7d846461 100644 --- a/target/s390x/translate.c +++ b/target/s390x/translate.c @@ -685,16 +685,9 @@ static void gen_op_calc_cc(DisasContext *s) set_cc_static(s); } =20 -static bool use_exit_tb(DisasContext *s) -{ - return s->base.singlestep_enabled || - (tb_cflags(s->base.tb) & CF_LAST_IO) || - (s->base.tb->flags & FLAG_MASK_PER); -} - static bool use_goto_tb(DisasContext *s, uint64_t dest) { - if (unlikely(use_exit_tb(s))) { + if (unlikely(s->base.tb->flags & FLAG_MASK_PER)) { return false; } return translator_use_goto_tb(&s->base, dest); @@ -6634,7 +6627,7 @@ static void s390x_tr_tb_stop(DisasContextBase *dcbase= , CPUState *cs) /* Exit the TB, either by raising a debug exception or by return. = */ if (dc->do_debug) { gen_exception(EXCP_DEBUG); - } else if (use_exit_tb(dc) || + } else if ((dc->base.tb->flags & FLAG_MASK_PER) || dc->base.is_jmp =3D=3D DISAS_PC_STALE_NOCHAIN) { tcg_gen_exit_tb(NULL, 0); } else { --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624239716; cv=none; d=zohomail.com; s=zohoarc; b=a/3P4NAe1dtvLcpMM87U3DN+rgjNBnRAJOTZBo4R9HYSCcuhGXspYh9e1lodigIl0oh5a2nENeX86SAdZthDluh+tYYw5tVZEYD751ChhtmMrsUNeo9YAv0aN8g7cqqsZ+gW0mtnTla4abu02GLkrpu1AiiaiomWele/V8X8QzU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239716; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=QjJQaVk4TJcc1Pr+MWyHRIaip7LxYhlzkm4i0kRZ5gY=; b=Ds9Fa7PviGpUIlSLUlz0smJQgEWBHUNgJ20F4SF1Ml+8qzdluNmO/v3Z9/OTOB8pMo9S/T8wtTAMKIrIk6fPxWljZPs8uvZIOW2YHSzLqBMUOdCEr4rzTdTduQzLkASfnb4Tmh4KNjVdrVJTw6yj4cieL7EjDDXx6Do44oBn1PM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624239716978933.3453148246516; Sun, 20 Jun 2021 18:41:56 -0700 (PDT) Received: from localhost ([::1]:56686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8wl-0001Su-01 for importer@patchew.org; Sun, 20 Jun 2021 21:41:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qF-00048v-4d for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:11 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:45827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8q1-0005Ey-HL for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:10 -0400 Received: by mail-pg1-x536.google.com with SMTP id y14so1403100pgs.12 for ; Sun, 20 Jun 2021 18:34:54 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QjJQaVk4TJcc1Pr+MWyHRIaip7LxYhlzkm4i0kRZ5gY=; b=ym/nxXLJLjB5Ns54EzuUTIWA71Iue6fpabWf1s0p8GuguZtVehMawvM3Tvv9jWXRVL IzuiODAIzF74jFjCJucLMjr9w7c1CQJZgpD20aOcGig1+Rzgels36sUcjwn4qlkZ3h2m vxI3XJRXHsvJln8SU4FMkqHvwxEOt3/Gz7TprBxO3CF9+7DEb9bK5Z7U1Jf/lrDlarvO ELaym3xnPN+tsJpJnDlQ63xF5mn6FnqEdoJJVVvbNsfdIKtnsbfHqk4354+1YhtzVkGk VLkIckkZ2JVulsSFzE1lNc+/vxKcYT0yK7+cYP2i4H7CJcWWBRJ3pHJJ3zuv1CkO51SA eNlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QjJQaVk4TJcc1Pr+MWyHRIaip7LxYhlzkm4i0kRZ5gY=; b=uT63+qykA6Mk9S6pxKgvu2OfB0lb5Abe0N+3RRRUkxOIN2zs54CwJm16n3WZz+dvlk lGfbnlmrPrsLKBXamkRlCGyzD/MgHQrcRMGolCInf11QzxLLb7ur0YcuGdasLQL1E4nI o/QUEZpjUJFEQsW9gzDSDfYBNFRKUBmZKNZbjVRjFzfLJWKC16pxn18XeDIpUGhAaV6n tjJkt4Pts7mRpLcaspTn1b/mbsbyZM6M8D/xF9udrudxcsmSRU1Fb1ssSwGZtZgYflr3 XdY+TRZDJ7wbGDfpNHWLiEEunm02PDC0CRq4dDbKoZgZvoHQDMnx7cETR+BRIFm5SAf/ VG2Q== X-Gm-Message-State: AOAM531EtpFlDfp//8fNDy6oCCzz+U2LU5UDJB1PQ2KMUf5xQyjCE0P+ LJSpk1YgiLKAYqrwbmn5skUiZBxYjmY8jQ== X-Google-Smtp-Source: ABdhPJwXv3UFYXGHxgAhbqDFbTO1ToIBsgr+akWsgvJVdjkcsaZomUyibLke+4sf6SjwRKkMsvy/Qg== X-Received: by 2002:aa7:9507:0:b029:2df:b6dc:c68c with SMTP id b7-20020aa795070000b02902dfb6dcc68cmr17175056pfp.31.1624239293793; Sun, 20 Jun 2021 18:34:53 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 22/26] target/sh4: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:35 -0700 Message-Id: <20210621013439.1791385-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x536.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: , Cc: Yoshinori Sato Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Cc: Yoshinori Sato Signed-off-by: Richard Henderson --- target/sh4/translate.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 9312790623..9ac9bc722e 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -225,17 +225,12 @@ static inline bool use_exit_tb(DisasContext *ctx) return (ctx->tbflags & GUSA_EXCLUSIVE) !=3D 0; } =20 -static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest) +static bool use_goto_tb(DisasContext *ctx, target_ulong dest) { - /* Use a direct jump if in same page and singlestep not enabled */ - if (unlikely(ctx->base.singlestep_enabled || use_exit_tb(ctx))) { + if (use_exit_tb(ctx)) { return false; } -#ifndef CONFIG_USER_ONLY - return (ctx->base.tb->pc & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PAG= E_MASK); -#else - return true; -#endif + return translator_use_goto_tb(&ctx->base, dest); } =20 static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624240230; cv=none; d=zohomail.com; s=zohoarc; b=WxezKRv3ORc2TWBYKjn+GaG/Kvci4ckJMrd5TpSCyGuUC1tanXqmNZ6LIJAt9SHE0oR78u7qmRyjvXyYvkkrtZk/AD9wputdHGUDXNBY9iS2cJSmBwfFPEg2IGVJWiXOnnGNpYX4Y4hEYa44RquyF8fvNBLjmoU2bTnzO/vgJ/o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624240230; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Q2Ouh73hF0AN8kJMLg+kfMZ9F8C6D2HrVX+Y0FukeRM=; b=hKIFGtKG80KdDa4oZCKa0heONOKxmcFmrviWnq+0xBgH7WZ5eHbhGGavNDSS5BKFHM+2znaBe5epZWvnuDd/HhJoPd9Un3llnOt94vb7ShdTzK5GMm9Hgno/GHYPDPNNmmWpmAeWOPRc8jp5f4wpuOQGYhYYqskLMSjT3lZ8PKE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624240230711953.4018437775452; Sun, 20 Jun 2021 18:50:30 -0700 (PDT) Received: from localhost ([::1]:54568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv952-0002W9-51 for importer@patchew.org; Sun, 20 Jun 2021 21:50:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qF-00049n-Fu for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:11 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:38734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8q1-0005F6-Hr for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:11 -0400 Received: by mail-pl1-x629.google.com with SMTP id 69so7651782plc.5 for ; Sun, 20 Jun 2021 18:34:55 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Q2Ouh73hF0AN8kJMLg+kfMZ9F8C6D2HrVX+Y0FukeRM=; b=EcaxYBWRyh18mYoxCHXWUA7BGoSb1bRc0HD4P2Yr7aExkjdnVJVbTDi1avkWY1XggQ XgLdh7V06xcjs3Mu0Wa+XWl+Q6OtjN4AbxuDy2Uqa0XURIMc8XjfDsGvsi+EE/bjc0rM Ba34foj5s5EhNz3S7MBSZ9SPAx1wb1NYO50kJn4VcTpeHcKPxrTjs0Jbr6/IbENdhYLx 6sDsJGip5tQ1kwXllS+b0pQDOrHoGGHMozfBlVbTyDlEYZuhNO1girer33hxtIko/iu7 Nsxr3/xKtnvuptx51kj3BI3bvCAvde92c3MsBPxqXuqi6tQbl7kVg+tu1B+vJIT1P4en kajA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q2Ouh73hF0AN8kJMLg+kfMZ9F8C6D2HrVX+Y0FukeRM=; b=An3BapQUcrvurrPkfrwh87WvCFTovnAsISEZieYGWhWSwTY3PbBQRFGiZFThuKOahV WlFTMetlbudnZYPi8EoJ+ezQtzTcnFNnjwbDoL84zBXZETVh9zBHB9UAqJUFiSyP4r59 n4d+n1eG8P+4+1E6EjkhXzCqItsIwmvkrj75Zn71Y6+SlA8GRjCJnAzhlczwPwwDchLs 7GsHdlpBg4Cmcr5WZwl5570XWYTW2WY79ZVC4/qEF/nDQq5J4ez7sOS7aKLGcZSKhuw4 lBS854w+GFKllYfkyWKr1n1Aou2/BU8u4A00T9yPn4a0l84AHPWKF7YrjpTmvpndlCYM ZxyQ== X-Gm-Message-State: AOAM530w017lU2ofpiFDemfbzlMCr0L4GFnLuSAVsYFrEkV55pv1/Zbb JASGTlQzs22OAPOeC1ENSe7sgn00DGqrFA== X-Google-Smtp-Source: ABdhPJx5nRv3e8hkBuA1OflyauVXS+AhzeeFus1arUXPqdp7D7xCQwQdaHshNYKlb3q0x+9RZido/w== X-Received: by 2002:a17:90b:8d:: with SMTP id bb13mr23683552pjb.98.1624239294431; Sun, 20 Jun 2021 18:34:54 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 23/26] target/sparc: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:36 -0700 Message-Id: <20210621013439.1791385-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.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: , Cc: Mark Cave-Ayland Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Cc: Mark Cave-Ayland Signed-off-by: Richard Henderson Reviewed-by: Mark Cave-Ayland --- target/sparc/translate.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 4bfa3179f8..fb0c242606 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -339,23 +339,14 @@ static inline TCGv gen_dest_gpr(DisasContext *dc, int= reg) } } =20 -static inline bool use_goto_tb(DisasContext *s, target_ulong pc, - target_ulong npc) +static bool use_goto_tb(DisasContext *s, target_ulong pc, target_ulong npc) { - if (unlikely(s->base.singlestep_enabled || singlestep)) { - return false; - } - -#ifndef CONFIG_USER_ONLY - return (pc & TARGET_PAGE_MASK) =3D=3D (s->base.tb->pc & TARGET_PAGE_MA= SK) && - (npc & TARGET_PAGE_MASK) =3D=3D (s->base.tb->pc & TARGET_PAGE_M= ASK); -#else - return true; -#endif + return translator_use_goto_tb(&s->base, pc) && + translator_use_goto_tb(&s->base, npc); } =20 -static inline void gen_goto_tb(DisasContext *s, int tb_num, - target_ulong pc, target_ulong npc) +static void gen_goto_tb(DisasContext *s, int tb_num, + target_ulong pc, target_ulong npc) { if (use_goto_tb(s, pc, npc)) { /* jump to same page: we can use a direct jump */ --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624240427; cv=none; d=zohomail.com; s=zohoarc; b=FeXARbADoXmA8y1h1FZ9I6IM5MHhLIPL+ObQMm4mUfuA7rsd4RwktaxK7qMARJz5fY6ULGver9euLM763KGQSXh9e4a3ucdgejaXqdowujudqMWgYEvRTcNgz49Hq0xwoS72m7ZPljXi8Rh2x8VHp9aZ5XYC/6gMgV9Sicrk0TE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624240427; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=lVjdPTEZr5bsk/W3c3tDkqvpodiVq7V2WUfItf4iddE=; b=i7ZY+sX2YTaAlYF9jqZCI/G1YXkMyvfJQY1m1+v8ZvJdXoWDjX145qyY6mftTqLZTuH5FKcC1zJFU5lsJ0AWDix+8SaD4hnFcNMdXmI4/mcGM+7HYQ6iaz3ebLDmf4S6nZd5jAiojpg25wocSL49h6jbpCTRdHaaceagKrbS/Fs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624240427392770.4175427954507; Sun, 20 Jun 2021 18:53:47 -0700 (PDT) Received: from localhost ([::1]:34532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv98E-0008Az-EE for importer@patchew.org; Sun, 20 Jun 2021 21:53:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qG-0004ET-L6 for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:12 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:53840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8q1-0005Ff-Hl for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:12 -0400 Received: by mail-pj1-x1035.google.com with SMTP id bb20so4806819pjb.3 for ; Sun, 20 Jun 2021 18:34:55 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lVjdPTEZr5bsk/W3c3tDkqvpodiVq7V2WUfItf4iddE=; b=DhpBdVEPuUfQKvNhVYbT0h1zGeQqL3RGyCdF4XvAtX7csgnSSOUG+iaYjSpPbZ2ERB HCWxU2wbn0rkh4JLKr/JKk5L0KOVMxK1slc6iNBKv2N2Fx5jZYEaDdF2hCUfI9vuRbUW gJP3w5WqU+4OQZJA87VcYNuD5amugm5jLdDNpYEL3nG7WRcAAvYDoIM54ngh7sF2Df70 e3TfpZ5GdKppyq81HVEu5EHoGoYZJJy+tdSg45wwCXM8+EwBb96pJ3SM5gaiYwqOI987 v1JV16G0RawwgrSUemQHs2iaBG2AyragRXOhKqwO/f6D1aoSS4QuOKobqhLqgqwifsoA Ou8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lVjdPTEZr5bsk/W3c3tDkqvpodiVq7V2WUfItf4iddE=; b=J3XtoJ7D7KE7ZLDQEhJ+21o8CphC49nqmldEWoU6nNgrNcRFMvTQgblF8G2em4+W4+ EHDH2ypAwCOroJ1qsDMJ6qa1q2F10ZXXqatxT2CJKtAH/idhvE2tO6DoJ2M/68Ary3lN LBcak+mIIgyhVCRacgyK5i+/y3dPkZbClgnuFyAE66wqtHXCGmHniJ//LNu4RiY4t+4D 7YnF+n2iUh6TZX1hNczC0aVPG/7jH0227F5kHElBfjCabTMoFbgco6QLD5qP/DmQUg3H FgI9Si7YqauiPl0MVXeLj//R0OAa6CYhs9bt9gqSMB7flJNz1fWiUDQdCDKQPKSI+Xcj dXvw== X-Gm-Message-State: AOAM532GklcOGCOB3d9TeIovthZAEGxhVbA1708Oj3G64UTJRix0nqrL X2n+ly3xJvnWzppkLy/VOzx7MgDJ/KVN8w== X-Google-Smtp-Source: ABdhPJyU47uApshjr5bHhhfqYwbv7wF64YImGVSl0cuSUd3Za2d/tOKGZfxkyfBBxLu0pjonUH6Rng== X-Received: by 2002:a17:90a:5401:: with SMTP id z1mr23651272pjh.7.1624239294886; Sun, 20 Jun 2021 18:34:54 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 24/26] target/tricore: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:37 -0700 Message-Id: <20210621013439.1791385-25-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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: , Cc: Bastian Koppelmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Cc: Bastian Koppelmann Signed-off-by: Richard Henderson Reviewed-by: Bastian Koppelmann --- target/tricore/translate.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/target/tricore/translate.c b/target/tricore/translate.c index 2a814263de..09465ea013 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -3225,19 +3225,6 @@ static inline void gen_save_pc(target_ulong pc) tcg_gen_movi_tl(cpu_PC, pc); } =20 -static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest) -{ - if (unlikely(ctx->base.singlestep_enabled)) { - return false; - } - -#ifndef CONFIG_USER_ONLY - return (ctx->base.tb->pc & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PAG= E_MASK); -#else - return true; -#endif -} - static void generate_qemu_excp(DisasContext *ctx, int excp) { TCGv_i32 tmp =3D tcg_const_i32(excp); @@ -3246,9 +3233,9 @@ static void generate_qemu_excp(DisasContext *ctx, int= excp) tcg_temp_free(tmp); } =20 -static inline void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) +static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) { - if (use_goto_tb(ctx, dest)) { + if (translator_use_goto_tb(&ctx->base, dest)) { tcg_gen_goto_tb(n); gen_save_pc(dest); tcg_gen_exit_tb(ctx->base.tb, n); --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624240359; cv=none; d=zohomail.com; s=zohoarc; b=POhvpFk8ybiGXoXX45hQqrP21Fppqi0jdcMVDI/vYyfqIyPdOoz/eybVqAGdkw2cEfpGC4ld6HOrBUJesd4MQoiAIspLPp3tN8wH+fO4KSH+nXzLjSD5rHvXvthlV1FDWDsihY9tGj/C6/c7BTBvMDIXcUm92+AAbkWhHL6Dbkg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624240359; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FyYP01btqNHdTOFLIRaUteWZ03amrYw7Mq0xWdr/+oA=; b=GTTY99nWU+ak3TtpmyhrGrZRxJvkNygbYD25YMBT756Yc1rxjl66MjWqBgEFHEf+RRSd1AIav54aft8lvF/0I0O7W2rkfaJy6+8xrwJVhINkEm8qEx4ebXtWbK3XvJVHJWw8iQZEXorLeXzYae49f738cHiyRCytPfS0aaj7jUQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624240359526475.87240151306753; Sun, 20 Jun 2021 18:52:39 -0700 (PDT) Received: from localhost ([::1]:59716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv978-00066W-CJ for importer@patchew.org; Sun, 20 Jun 2021 21:52:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qG-0004Bv-2x for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:12 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:42924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8q1-0005Fk-Ha for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:11 -0400 Received: by mail-pj1-x1030.google.com with SMTP id 13-20020a17090a08cdb029016eed209ca4so9292419pjn.1 for ; Sun, 20 Jun 2021 18:34:56 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FyYP01btqNHdTOFLIRaUteWZ03amrYw7Mq0xWdr/+oA=; b=hQdA7rUDm50MV6QRisqQw3w4PUj5b2FTh7YKG0/9wSct2BYIq1+e4we0aXPur0TYf3 DaSAxX9XVzckZ2h1+xXWaLc16H57Ka851OaKvLsoZtl9UizuU/EvraCzGc/C0BtAyI7F 5d4Qmb12vlxvpcmMWSptEMytxci8qF1P/g/0aE4XTq+CAEFGdzkPD5MtvKB3Hpx5Np85 s0MpXLOK/y0+c65Y41LnGVUQXlxwZF2QV7fl1BH6nyM6zwhkESFkOXVUKZWEF5QhoZd7 3KAnscVatFDt7WeQXxJbWGHi3RsuZEwSJTF29AR05GB/n10Wege/Vus9/CJeauhDUnGQ rD2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FyYP01btqNHdTOFLIRaUteWZ03amrYw7Mq0xWdr/+oA=; b=XeIuliNeBHOcg+FTHVHHsjauh9LtjA3SmgnsBYqZNYsEzGP9nqVDErfE1x6uJW14D2 n60Ilp0tPjOOd0iyAdIx+gGpw2cwSDzvovmxUSNPmbaNM1Gfc6rnBERQGIf30QH2NMZK WwZ1XqwGBaszcVdUueMcrt28jJdRFjB6okCwvwKEY725i1Vw7y/Hc0wu+wEW8G6SIm8c AqGZWg082qp0uBifQ1sKUBCmmdlPq5CmhEDTQ23bb1n+EzgxFffe+/v7dJiMCDe2nygz osqBeIPViEg9w8bKrS2c3A2OHKtfaAwSGNSHikAiK6dXks8tomrcBCWLzjOvm6jxse8b Iyew== X-Gm-Message-State: AOAM5319tIHpah/JALVTtYnrrIzsO6FOLaSKWg0i7YaLa69w1uJlI5lJ 5AF4cdFaFBnwC2YrBXj+7Rvb+RIYDDzmGA== X-Google-Smtp-Source: ABdhPJz1YN0VyH8n8k34a7n+uDi9vbQjpsAOHqmOw6PC7jugdY0WTJvxsR0WuQ0KW1xmE9Ei4y7DqQ== X-Received: by 2002:a17:902:720b:b029:113:19d7:2da7 with SMTP id ba11-20020a170902720bb029011319d72da7mr15481603plb.55.1624239295362; Sun, 20 Jun 2021 18:34:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 25/26] target/tricore: Use tcg_gen_lookup_and_goto_ptr Date: Sun, 20 Jun 2021 18:34:38 -0700 Message-Id: <20210621013439.1791385-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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: , Cc: Bastian Koppelmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" The non-single-step case of gen_goto_tb may use tcg_gen_lookup_and_goto_ptr to indirectly chain. Cc: Bastian Koppelmann Signed-off-by: Richard Henderson Reviewed-by: Bastian Koppelmann --- target/tricore/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/tricore/translate.c b/target/tricore/translate.c index 09465ea013..865020754d 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -3243,8 +3243,9 @@ static void gen_goto_tb(DisasContext *ctx, int n, tar= get_ulong dest) gen_save_pc(dest); if (ctx->base.singlestep_enabled) { generate_qemu_excp(ctx, EXCP_DEBUG); + } else { + tcg_gen_lookup_and_goto_ptr(); } - tcg_gen_exit_tb(NULL, 0); } } =20 --=20 2.25.1 From nobody Fri May 17 06:43:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624240145; cv=none; d=zohomail.com; s=zohoarc; b=QOMv/wPgWEHDTX1pzRJMZRcMF+73fQ9jG/ysQZU9WRy47xKdz2kUvvYQY3O+2EXR3tSIfgM7fqhgqXePHRnhj4EVrpOPDP8XkkecXV8q+pgQDym72W59wMfxBbyxX00IlS+YjJn26YxN6BuPH/K/tbU+JXihfPdNr9baxWRL9WA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624240145; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=fx8+qdcju9NPtj3eCrU8zuRjZGAw5A7xVtYSk1jWA7Q=; b=Eoh/hIIXpiIZyW1r1/CSbIw+vH89TcEtLO9eNgI2J/xxAnBS++1KWcCQhqO8J9D1ClGN9RGUYhhPEhFS4RtitqCia832628GB8eckYiuJWfSV3mCdi73SeMxR3HqAZnaI0/1pLPALOywXSYjl9m+pZztLt1lvEbEag+cY1dREcE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624240145811623.089439949741; Sun, 20 Jun 2021 18:49:05 -0700 (PDT) Received: from localhost ([::1]:51598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv93g-0000T4-Ob for importer@patchew.org; Sun, 20 Jun 2021 21:49:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qF-0004Ay-SG for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:11 -0400 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:34599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8q1-0005Fo-Hj for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:11 -0400 Received: by mail-pj1-x1033.google.com with SMTP id g6-20020a17090adac6b029015d1a9a6f1aso9328511pjx.1 for ; Sun, 20 Jun 2021 18:34:56 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fx8+qdcju9NPtj3eCrU8zuRjZGAw5A7xVtYSk1jWA7Q=; b=s6RqCuzZOPMCNZR+2d6/X7WhC+ixC98pEIGIR4pG3nQCZ6/9j9EY86MDkab1ooMD7o dnMQnTILD4HQ92PrZ79ojF0tFhH4EEPkERvnMBDDBZUS3bCdlHW5WXg3oTTiJRup+siX E3QVJJVNuD7GjKWFTCSH34Tg2NcmwPGV8EJby0Z9Xw7TDM5mOPmqNGCLWcKPzzPGReVj pywTN/t5Jajj8dt5cep5C8UACWY1NIIBOaCvB+sUVNNDx6/L6DlcY6XMWjIUSnvnHhj+ Zhr1r31xhTboHkTfTzXVtjoQH/OTnNn2It9VZb1BtnB8igD3VJ1cFrLnIsEaatFJWST8 Kmcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fx8+qdcju9NPtj3eCrU8zuRjZGAw5A7xVtYSk1jWA7Q=; b=R2HWrwVlpJ3bzHguinxAccnkVHslb0y07q3hU6FI9tacwv9xrNhcz6cM4iuu1rK/mo RwVCePPKM8w8u+vAWM3uNPsfg2ade1+GMJdTFhJaZxZZoGLITy+OluZkdiBmeX4nHwF7 lxx1nKDVUoF8Ktw4rWD40/wTCUw2PQc5N9VhBaThsoAOdq71AwVrukmeYA7dLytySvpj PDHlUFc4q4ZodHtM/AMrZm2xBrnzcRWDdYj29Z0EdjJG1jYPEdIPZqhGGMYv01T2vuqt VGsxbdw1bOufxycW/kXg0TC+7t5G4WwEainnTOlzaaD0ZeS0NPT9MLvUYfcmoBqIs9cs q2mg== X-Gm-Message-State: AOAM530YiZrmwoJpcRaxxkNHJVUAoBDCxVUUXojr2+Ty7FlXamglImcp DeQwtFFXYGFe341uoa/nmJNkLaquiH1Qgg== X-Google-Smtp-Source: ABdhPJz9igeVKNS6jQH7ubqSNdDrV7PV6nKCzUV8STmj642GrY7ScUh1hTUhHEZCE893U1rdtchgCQ== X-Received: by 2002:a17:90a:f293:: with SMTP id fs19mr1431361pjb.149.1624239295878; Sun, 20 Jun 2021 18:34:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 26/26] target/xtensa: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:39 -0700 Message-Id: <20210621013439.1791385-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.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: , Cc: Max Filippov Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Cc: Max Filippov Signed-off-by: Richard Henderson Reviewed-by: Max Filippov --- target/xtensa/translate.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 14028d307d..ac42f5efdc 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -406,11 +406,7 @@ static void gen_jump(DisasContext *dc, TCGv dest) =20 static int adjust_jump_slot(DisasContext *dc, uint32_t dest, int slot) { - if (((dc->base.pc_first ^ dest) & TARGET_PAGE_MASK) !=3D 0) { - return -1; - } else { - return slot; - } + return translator_use_goto_tb(&dc->base, dest) ? slot : -1; } =20 static void gen_jumpi(DisasContext *dc, uint32_t dest, int slot) --=20 2.25.1