qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] hw/display: Add basic ATI VGA emulation


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] hw/display: Add basic ATI VGA emulation
Date: Thu, 21 Feb 2019 09:14:54 +0000

On Thu, 21 Feb 2019 at 00:51, BALATON Zoltan <address@hidden> wrote:
>
> On Thu, 21 Feb 2019, BALATON Zoltan wrote:
> > On Tue, 19 Feb 2019, Peter Maydell wrote:
> >> On Tue, 12 Feb 2019 at 23:59, BALATON Zoltan <address@hidden> wrote:
> >>> On Tue, 12 Feb 2019, Philippe Mathieu-Daudé wrote:
> >>>> I'd have use a pair of extract32/deposit32 but this is probably easier
>
> By the way, should these lines in include/qemu/bitops.h have 1ULL instead of 
> 1UL?
>
> 22 #define BIT(nr)                 (1UL << (nr))
> 23 #define BIT_MASK(nr)            (1UL << ((nr) % BITS_PER_LONG))

No, those are part of the bitmap API borrowed from the Linux
kernel, which works on bitmaps defined as arrays of "unsigned long"
values. (These are an annoying mismatch with how QEMU generally
prefers to work in types of well-defined sizes, but they are what
they are.)

thanks
-- PMM



reply via email to

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