From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uti8k-0002pF-Og for qemu-devel@nongnu.org; Mon, 01 Jul 2013 13:43:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uthr0-0005HF-M5 for qemu-devel@nongnu.org; Mon, 01 Jul 2013 13:25:33 -0400 Message-ID: <51D1BB86.8020003@suse.de> Date: Mon, 01 Jul 2013 19:25:26 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= 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> In-Reply-To: <51D1B7D2.8040604@twiddle.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Richard Henderson 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 Richard or anyone, Am 01.07.2013 19:09, schrieb Richard Henderson: > On 06/29/2013 01:01 PM, Andreas F=C3=A4rber wrote: >> This moves setting the Program Counter from gdbstub into target code. >> Use uint64_t type as maximum replacement for target_ulong. >> >> Signed-off-by: Andreas F=C3=A4rber >> --- >> gdbstub.c | 39 ++++++------------------------------= --- >> include/qom/cpu.h | 1 + >> target-alpha/cpu.c | 8 ++++++++ >> target-arm/cpu.c | 8 ++++++++ >> target-cris/cpu.c | 8 ++++++++ >> target-i386/cpu.c | 8 ++++++++ >> target-lm32/cpu.c | 8 ++++++++ >> target-microblaze/cpu.c | 8 ++++++++ >> target-mips/cpu.c | 14 ++++++++++++++ >> target-openrisc/cpu.c | 8 ++++++++ >> target-ppc/translate_init.c | 8 ++++++++ >> target-s390x/cpu.c | 8 ++++++++ >> target-sh4/cpu.c | 8 ++++++++ >> target-sparc/cpu.c | 9 +++++++++ >> target-xtensa/cpu.c | 8 ++++++++ >> 15 files changed, 118 insertions(+), 33 deletions(-) >=20 > Reviewed-by: Richard Henderson 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? Should we introduce some ulong-target-max typedef similar to hwaddr or use plain uint64_t as done here? Thanks, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg