[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [RfC PATCH 08/11] spice: add qxl device
From: |
Blue Swirl |
Subject: |
[Qemu-devel] Re: [RfC PATCH 08/11] spice: add qxl device |
Date: |
Thu, 15 Apr 2010 19:47:07 +0300 |
On 4/15/10, Paolo Bonzini <address@hidden> wrote:
> On 04/14/2010 06:52 PM, Blue Swirl wrote:
>
> > On 4/14/10, Gerd Hoffmann<address@hidden> wrote:
> >
> > > +static inline void atomic_or(uint32_t *var, uint32_t add)
> > > +{
> > > + __asm__ __volatile__ ("lock; orl %1, %0" : "+m" (*var) : "r" (add)
> : "memory");
> > > +}
> > >
> >
> > This will break on non-x86 hosts.
> >
>
> I'd just use __sync_fetch_and_or here.
And on environments without __sync_fetch_and_or? Where is that available?
[Qemu-devel] [RfC PATCH 09/11] qxl: local rendering for sdl/vnc, Gerd Hoffmann, 2010/04/14
[Qemu-devel] [RfC PATCH 08/11] spice: add qxl device, Gerd Hoffmann, 2010/04/14
- Re: [Qemu-devel] [RfC PATCH 08/11] spice: add qxl device, Blue Swirl, 2010/04/14
- [Qemu-devel] Re: [RfC PATCH 08/11] spice: add qxl device, Gerd Hoffmann, 2010/04/16
- [Qemu-devel] Re: [RfC PATCH 08/11] spice: add qxl device, Paolo Bonzini, 2010/04/16
- Re: [Qemu-devel] Re: [RfC PATCH 08/11] spice: add qxl device, Gerd Hoffmann, 2010/04/16
- [Qemu-devel] Re: [RfC PATCH 08/11] spice: add qxl device, Richard Henderson, 2010/04/16
Re: [Qemu-devel] [RfC PATCH 08/11] spice: add qxl device, Alexander Graf, 2010/04/14
[Qemu-devel] [RfC PATCH 06/11] spice: simple display, Gerd Hoffmann, 2010/04/14