Received: by 2002:a17:504:3a8f:b0:1be9:327d:8ee3 with SMTP id g15csp367519njf; Fri, 30 Aug 2024 11:44:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW2sHXlUZTwQikt5xwBP0eyLJF3QDzmG1XBTKADdCxrFcKVGXb3j7XgkHeLkcZO9BVrARsjZmBgXYvBnw==@linaro.org X-Google-Smtp-Source: AGHT+IGa+9ydrV+x+3uLSMuK9/+Y9C/+jSd2SJCAd0RfEUpHQ+nc461esv5KMV/Jb9HYX07uId5i X-Received: by 2002:a05:620a:280c:b0:79f:14ef:40cf with SMTP id af79cd13be357-7a804266f84mr647612385a.56.1725043492208; Fri, 30 Aug 2024 11:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725043492; cv=none; d=google.com; s=arc-20160816; b=TZMQ8a5K3h271IjDkoUG144LocwKqHkCi/kSgBqIIRikuAWS8Bg1IqnqBhDrOPmQqw f1gfEGvZ6uyL/uDybFbjWKpjGMObcLw0J/YLVqyLmsLhPV1UieG+WkfUXM+KhVv4i69M +3M/Xp80TNnp/r6wwFe3OR4BUXEzTOQGXUtSC5eTS+79Mkz6ZnBN24WryS/5rzobscm3 cx9aXoC93/ClF+RTy5PH+e6bgc8pQMOxa9wSM8N2g3JcKOAP2unaTnErOSxyDVHo9Tp+ XXZdVq4IzFxOKgqeMKeWVLYFtkLUlrtQykFd6m8duUSq9s+pJ8PnpOtDih31vkvdPUbW RK6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:from:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:date; bh=TtUY8nleRKMclPZQW8GHjuUWHBZMHpNqbmZHwtcpFAI=; fh=eJg1DQBnCaPPcIise5N30/UdUeb1EABfSMa6jQaJ200=; b=v5QiJu+THgZsFHWuAK9glgzYaBjQI3ajTbB2HmPqsDQBXiTJ4KU4Qb1iWUcpzgi5t9 OiopWT1FIb8WLbGXmYhErmfgscQqO5UTLN5z+HmcxXGckQYMIfZka60ufix/cH8W9zhq ZQTAcbA56ZgmhDS+hL18btA1a954fxUh4BPXRXw3uR9WF3hpIfJ3wbNTh3vFihpjRUXZ 84HMki5dIEmG2EbDRSLYGAcpIh4kKod92ThWVPbCusawGkCybXvM0FwMsteVAMgLat4J Vt/xIp9ot37rSMp1TP9ORc6ObQ/uByelXsSHlE2tjp8w/uzJ1/p6Ly1d47rSvBx7XuGT 5ddA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a806c1a18asi449081685a.20.2024.08.30.11.44.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Aug 2024 11:44:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nongnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sk6c1-0002yj-N0; Fri, 30 Aug 2024 14:44:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sk6bz-0002xn-UW; Fri, 30 Aug 2024 14:44:44 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sk6bx-0001mR-67; Fri, 30 Aug 2024 14:44:43 -0400 Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4WwRn72ZGbz67ZDL; Sat, 31 Aug 2024 02:41:15 +0800 (CST) Received: from lhrpeml500006.china.huawei.com (unknown [7.191.161.198]) by mail.maildlp.com (Postfix) with ESMTPS id E39181402C7; Sat, 31 Aug 2024 02:44:34 +0800 (CST) Received: from localhost (10.47.73.222) by lhrpeml500006.china.huawei.com (7.191.161.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 30 Aug 2024 19:44:34 +0100 Date: Fri, 30 Aug 2024 19:44:29 +0100 To: Peter Maydell CC: , , , , , , Subject: Re: [PATCH] target/arm/tcg: refine cache descriptions with a wrapper Message-ID: <20240830194429.00005f84@huawei.com> In-Reply-To: References: <20240830161932.44-1-alireza.sanaee@huawei.com> Organization: Huawei X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.73.222] X-ClientProxiedBy: lhrpeml500004.china.huawei.com (7.191.163.9) To lhrpeml500006.china.huawei.com (7.191.161.198) Received-SPF: pass client-ip=185.176.79.56; envelope-from=alireza.sanaee@huawei.com; helo=frasgout.his.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Reply-to: Alireza Sanaee From: Alireza Sanaee via Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: lHbEsl+rrqkX On Fri, 30 Aug 2024 17:29:59 +0100 Peter Maydell wrote: > On Fri, 30 Aug 2024 at 17:19, Alireza Sanaee > wrote: > > > > Add wrapper for different types of CPUs available in tcg to decribe > > caches. Two functions `make_ccsidr32` and `make_ccsidr64` > > describing descriptions. The 32 bit version receives extra > > parameters that became unknown later in 64 bit. > > > > For CCSIDR register, 32 bit version follows specification [1]. > > Conversely, 64 bit version follows specification [2]. > > > > [1] B4.1.19, ARM Architecture Reference Manual ARMv7-A and ARMv7-R > > edition, https://developer.arm.com/documentation/ddi0406 > > [2] D23.2.29, ARM Architecture Reference Manual for A-profile > > Architecture, https://developer.arm.com/documentation/ddi0487/latest/ > > Could you explain in the commit message the reason for > making this change, please? > > thanks > -- PMM Sure. Just to clarify here, the patch allows for easier manipulation of cache register description which can be handy for testing in particular, and it cleans up existing descriptions of course. Thanks, Alireza