[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 2/7] tests: Add virtio device initialization
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v7 2/7] tests: Add virtio device initialization |
Date: |
Mon, 1 Sep 2014 16:22:51 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Fri, Aug 29, 2014 at 05:59:37PM +0200, Paolo Bonzini wrote:
> Il 29/08/2014 17:49, Stefan Hajnoczi ha scritto:
> > for (i = 0; i < 8; ++i) {
> > quad.bytes[i] = qpci_io_readb(dev->pdev, addr + i);
> > }
> > if (qtest_big_endian() != qtest_host_endian()) {
> > quad.u64 = bswap64(quad.u64);
> > }
> > return quard.u64;
>
> Why not keep the logic in Marc's patch, just replacing the union with OR
> and shift?
That's fine too.
Stefan
pgpxlor1yOvGm.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH v7 2/7] tests: Add virtio device initialization,
Stefan Hajnoczi <=