From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGRN4-0005uT-6D for qemu-devel@nongnu.org; Sat, 18 Jul 2015 08:37:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGRN0-00085S-6u for qemu-devel@nongnu.org; Sat, 18 Jul 2015 08:37:38 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:37381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGRN0-00085M-03 for qemu-devel@nongnu.org; Sat, 18 Jul 2015 08:37:34 -0400 Received: by wibud3 with SMTP id ud3so61650306wib.0 for ; Sat, 18 Jul 2015 05:37:33 -0700 (PDT) Sender: Paolo Bonzini References: <55AA4388.9070008@redhat.com> From: Paolo Bonzini Message-ID: <55AA4889.9050000@redhat.com> Date: Sat, 18 Jul 2015 14:37:29 +0200 MIME-Version: 1.0 In-Reply-To: <55AA4388.9070008@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 15/35] include/exec: Split target_long def to new header List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite , qemu-devel@nongnu.org On 18/07/2015 14:16, Paolo Bonzini wrote: >> > +/* target_ulong is the type of a virtual address */ >> > +#if TARGET_LONG_SIZE == 4 >> > +#define target_long int32_t >> > +#define target_ulong uint32_t >> > +#define TARGET_FMT_lx "%08x" >> > +#define TARGET_FMT_ld "%d" >> > +#define TARGET_FMT_lu "%u" >> > +#elif TARGET_LONG_SIZE == 8 >> > +#define target_long int64_t >> > +#define target_ulong uint64_t >> > +#define TARGET_FMT_lx "%016" PRIx64 >> > +#define TARGET_FMT_ld "%" PRId64 >> > +#define TARGET_FMT_lu "%" PRIu64 >> > +#else >> > +#error TARGET_LONG_SIZE undefined >> > +#endif > Would it be possible, or make sense, to do > > #define target_long arm_target_long > #define target_ulong arm_target_ulong > > instead? This makes prototypes nicer when printed in the debugger with > ptype. Where could this be done? Hmm, ISTR that this was more or less what v2 was like, so I guess you made the change for a reason. :) So ignore this. Paolo