From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtjOL-00015I-Ew for qemu-devel@nongnu.org; Mon, 01 Jul 2013 15:04:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtjOI-0007DY-8F for qemu-devel@nongnu.org; Mon, 01 Jul 2013 15:04:01 -0400 Sender: Richard Henderson Message-ID: <51D1D298.30605@twiddle.net> Date: Mon, 01 Jul 2013 12:03:52 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1372536117-28167-1-git-send-email-afaerber@suse.de> <1372536117-28167-5-git-send-email-afaerber@suse.de> <51D1B7D2.8040604@twiddle.net> <51D1BB86.8020003@suse.de> In-Reply-To: <51D1BB86.8020003@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH RFC qom-cpu 04/41] cpu: Introduce CPUClass::set_pc() for gdb_set_cpu_pc() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: Peter Maydell , qemu-devel@nongnu.org, Alexander Graf , Blue Swirl , Max Filippov , Michael Walle , qemu-ppc , Paul Brook , "Edgar E. Iglesias" , Jan Kiszka , Aurelien Jarno On 07/01/2013 10:25 AM, Andreas Färber wrote: > This is the first case where I am proposing the use of uint64_t in place > of target_ulong. In this case a gdb command using such a hook is not > performance-sensitive. Do you see this as an acceptable path for adding > further CPUClass hooks such as MMU fault handling? I think that would be appropriate. MMU faulting can't be much more performance sensitive than device emulation, which is already standardizing on 64-bit addresses. > Should we introduce some ulong-target-max typedef similar to hwaddr or > use plain uint64_t as done here? I would think hwaddr wouldn't be appropriate, since that's supposed to be talking about physical addresses, and that's not the case here. The name (and admittedly minimal documentation for) ram_addr_t sounds right, but it seems to be sized wrong, so I don't know what it's actually supposed to be. Unless someone has a better suggestion, I'd stay with uint64_t. r~