Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9AB90F99C95 for ; Sat, 18 Apr 2026 22:29:38 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wEEAT-0004ro-OU; Sat, 18 Apr 2026 18:29:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wEEAS-0004qq-2e for qemu-arm@nongnu.org; Sat, 18 Apr 2026 18:29:36 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wEEAQ-0003uK-Iu for qemu-arm@nongnu.org; Sat, 18 Apr 2026 18:29:35 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-488b3f8fa2bso25070065e9.1 for ; Sat, 18 Apr 2026 15:29:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1776551373; x=1777156173; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=I7n/2zBWju1wYJ9AKQZf6kE8OWa3AHp2i/hzpSAHj5U=; b=zbaCsD9titq7e+JvZ17UafxitvGVX58LPOpxigEG3pWfeFAQJfqY/h21K53wcKqhcM kBgV9MSupieSVu+c6SDnNga7P3s50kbTA0ma8zjrn4H6PIt3gXVq89Y2ovUtZtAtrs5t sNIc5zMayR9RZTFUaNJeqq+L6kmF6IY295NNAlkYhhAcJp+ACqqRGw/pGUPIlNXrdRmT tdI/pL5bfelwVXZqtchQ/8M4ip3oFkKYT7AMoBu/liupItt8lkZpS5ELdWQQlsr/BDNf 1ubBBqV5In+MoUmVQAQ9eP6Ma41YWgIvQqzYzVdXA5r/aUP6F1yqafBodZK6qisC52V2 5KIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776551373; x=1777156173; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I7n/2zBWju1wYJ9AKQZf6kE8OWa3AHp2i/hzpSAHj5U=; b=tW2uhWea/FjAh/yM++tXbX5lo/ht6NTwpi214sSnHRwpvU//yEPO/kbAazFOXPgMxi EjQ4ECY+zHYlpttfcqkbjwBfwqjPv9aRjbjU1sJIyoCcJQxixQHvHAWd0Jx1SzXAsExI Cab/Tl5rvA8gcqZGcBcN6a9X7BdgPT+vZwxBziD9lL1ICJ0PXVRNbAN87lZeV6yg0Kuo 9Frj910Zs0c5CfbEULr0nq97Q6+xn/WU3JAcTTT6vkAUxjhea6dkyorQ5deQhaO6xxGT Rbvysxtk7Mz5Cr8rvvpXgGI5U+GbYtXPsuAUFSLB+v8ctFJckEi46lTNkOmOrmDEYoMo t9kA== X-Forwarded-Encrypted: i=1; AFNElJ/WmTeyLFfSKVUYGSEcwwJZDh9ZOL2F2xwvZ43p6R2cMhYjIE6R93IgE/wm7VDG9o4RE7Y0X15mEQ==@nongnu.org X-Gm-Message-State: AOJu0YxpsbTpuLk7RWfbbOde+84OZxS35mxIWYpNufdjBYBkzK9UyfZ8 Od6zkNEqV5zm+7AvaFgRuIPftjW+wL5S5gjNyKXIeMcsueiHQMLlN5AyEEhmi8u9dZI= X-Gm-Gg: AeBDievdjXHlpMOd8ZlTDwwkRFqMBo8Qz8fFTHQ98Sxh5VWyGeCnyyD5vOOGj/NUU+J QdzxRoOpNq6mGq4GM0ulH/5DGwbdmZuUfAwfwN6RZVq52kdvpC2IO0CXeFjmXLnQ1pIrmzLPrKt qoL70T5ErgrQgW9Ecmi2KKz4t8hsWMtr8YEc56KS61UvVCfCj+o9ib4R6kKffw1ksz85TXMN0Xn Ph9fJdfOSEYc00dyrfb7rAikUwV4O2biZ0PCZvm1UQ0+PY2IAs/lbTfTxnb2D3SZm4X/ohNGWrf MiO0jJGZmENu5DiFt9SVrpIYDLODxqr/U+xs9s3zhVCuUtf9EO7Qcmro/QSMeSmxPAFCkfIAbVY UST+7++FK4HHb3I3NLOo/3gTSGdkt4lh8SEli3NF+WCw+u3jhHiYq/2RWjFaRK+K41OnBtOgdrG 1sB1ocEwhkQibK24vypyHng0UvBnqBfEITfQjfJmnVpVYIkcw9B4xytjN+8ZRUwjDK+Uji3oyff FpC X-Received: by 2002:a05:600c:321a:b0:488:fbf6:ea59 with SMTP id 5b1f17b1804b1-488fbf6ed4amr71233705e9.12.1776551372906; Sat, 18 Apr 2026 15:29:32 -0700 (PDT) Received: from [192.168.69.228] (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43fe4cc0f31sm16054054f8f.12.2026.04.18.15.29.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Apr 2026 15:29:32 -0700 (PDT) Message-ID: <08f50eb3-c050-48f7-aa4f-1366e434bfb0@linaro.org> Date: Sun, 19 Apr 2026 00:29:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 16/17] target/arm: Implement translate_for_debug Content-Language: en-US To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, Marcel Apfelbaum , Yanan Wang , Zhao Liu , Paolo Bonzini , Richard Henderson , "Dr. David Alan Gilbert" , =?UTF-8?Q?Alex_Benn=C3=A9e?= , Alexandre Iooss , Mahmoud Mandour , Peter Xu , "Edgar E. Iglesias" , Jiaxun Yang , Nicholas Piggin , Chinmay Rath , Glenn Miles , Palmer Dabbelt , Alistair Francis , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Chao Liu , Ilya Leoshkevich , David Hildenbrand , Mark Cave-Ayland , Artyom Tarasenko References: <20260417173105.1648172-1-peter.maydell@linaro.org> <20260417173105.1648172-17-peter.maydell@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20260417173105.1648172-17-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org On 17/4/26 19:31, Peter Maydell wrote: > Implement the translate_for_debug method instead of the > get_phys_addr_attrs_debug one. This allows us to pass the caller the > lg_page_size from our internal GetPhysAddrResult struct. > > Awkwardly, translate_for_debug's "true on success" convention > is the opposite of the one we use internally in ptw.c, so > we have to be careful about the sense of the return values. > This corresponds to the way that arm_cpu_tlb_fill_align() > also has to return true when get_phys_addr() returns false. > > Signed-off-by: Peter Maydell > --- > target/arm/cpu.c | 2 +- > target/arm/cpu.h | 3 --- > target/arm/internals.h | 4 ++++ > target/arm/ptw.c | 37 ++++++++++++++++++++++--------------- > 4 files changed, 27 insertions(+), 19 deletions(-) Reviewed-by: Philippe Mathieu-Daudé