qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH 09/15] Parse SDR1 on mtspr instead of at tra


From: David Gibson
Subject: Re: [Qemu-devel] Re: [PATCH 09/15] Parse SDR1 on mtspr instead of at translate time
Date: Sun, 13 Feb 2011 23:52:01 +1100
User-agent: Mutt/1.5.20 (2009-06-14)

On Sun, Feb 13, 2011 at 01:33:44PM +0100, Alexander Graf wrote:
> 
> On 13.02.2011, at 10:02, David Gibson wrote:
> 
> > On Sat, Feb 12, 2011 at 04:37:46PM +0100, Alexander Graf wrote:
> >> On 12.02.2011, at 15:54, David Gibson wrote:
> > [snip]
> >>> +#define SDR_HTABORG_32         0xFFFF0000UL
> >>> +#define SDR_HTABMASK           0x000001FFUL
> >> 
> >> Please mark this constant as ppc32
> >> 
> >>> +
> >>> +#if defined(TARGET_PPC64)
> >>> +#define SDR_HTABORG_64         0xFFFFFFFFFFFC0000ULL
> >>> +#define SDR_HTABSIZE           0x000000000000001FULL
> >> 
> >> Please mark this constant as ppc64
> > 
> > Um.. I'm not sure what you mean by this.
> 
> Well, while to you SDR_HTABMASK and SDR_HTABSIZE are "obviously"
> meant for ppc32/ppc64 respectively, the average code reader won't
> know the difference. What I'm proposing is:
> 
> #define SDR_32_HTABORG
> #define SDR_32_HTABMASK
> 
> #define SDR_64_HTABORG
> #define SDR_64_HTABSIZE
> 
> This way it's a lot more obvious that the two constants really
> belong to two completely different semantics :).

Ah! I see.  Done, I'll have this in the next cut.

-- 
David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!
http://www.ozlabs.org/~dgibson



reply via email to

[Prev in Thread] Current Thread [Next in Thread]