[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [PATCH] musicpal: Fix flash mapping
From: |
Peter Maydell |
Subject: |
Re: [Qemu-stable] [PATCH] musicpal: Fix flash mapping |
Date: |
Fri, 7 Sep 2012 16:25:47 +0100 |
On 7 September 2012 15:53, Jan Kiszka <address@hidden> wrote:
> On 2012-09-07 16:41, Peter Maydell wrote:
>> On 7 September 2012 00:03, Jan Kiszka <address@hidden> wrote:
>>> + pflash_cfi02_register(0x100000000-MP_FLASH_SIZE_MAX, NULL,
>>
>> I don't think this will compile on a 32 bit system, will it?
>> You probably want an ULL suffix.
>
> It does as the result always fits in 32 bits. But I can add that if you
> prefer.
I think I had a misconception of this bit of the C standard.
C will pick a type big enough to fit the constant value (which
will in this case be a 64 bit type of some kind), even without
an ULL suffix. So you're right, it's OK.
Reviewed-by: Peter Maydell <address@hidden>
-- PMM
- [Qemu-stable] [PATCH] musicpal: Fix flash mapping, Jan Kiszka, 2012/09/06
- Re: [Qemu-stable] [PATCH] musicpal: Fix flash mapping, Peter Maydell, 2012/09/07
- Re: [Qemu-stable] [PATCH] musicpal: Fix flash mapping, Jan Kiszka, 2012/09/07
- Re: [Qemu-stable] [PATCH] musicpal: Fix flash mapping,
Peter Maydell <=
- Re: [Qemu-stable] [Qemu-devel] [PATCH] musicpal: Fix flash mapping, Blue Swirl, 2012/09/08
- Re: [Qemu-stable] [Qemu-devel] [PATCH] musicpal: Fix flash mapping, Jan Kiszka, 2012/09/08
- [Qemu-stable] [PATCH v2] musicpal: Fix flash mapping, Jan Kiszka, 2012/09/08
- Re: [Qemu-stable] [PATCH v2] musicpal: Fix flash mapping, Peter Maydell, 2012/09/08
- Re: [Qemu-stable] [PATCH v2] musicpal: Fix flash mapping, Jan Kiszka, 2012/09/08
- [Qemu-stable] [PATCH v2a] musicpal: Fix flash mapping, Jan Kiszka, 2012/09/08
- Re: [Qemu-stable] [PATCH v2a] musicpal: Fix flash mapping, Blue Swirl, 2012/09/08