|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH v7 2/7] tests: Add virtio device initialization |
Date: | Fri, 29 Aug 2014 17:59:37 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
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? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |