]> git.proxmox.com Git - mirror_qemu.git/commit
qtest: ask endianness of the target in qtest_init()
authorLaurent Vivier <lvivier@redhat.com>
Fri, 7 Oct 2016 10:14:27 +0000 (12:14 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 13 Oct 2016 23:06:47 +0000 (10:06 +1100)
commit54ce6f22e86977b6e94692d90e13fce6fc9aa641
treec06599cb41ed1daaaa581c8f9e11d7839943474e
parent44a3dd9b8718a7f0a94053c57782886748a43d7a
qtest: ask endianness of the target in qtest_init()

The target endianness is not deduced anymore from
the architecture name but asked directly to the guest,
using a new qtest command: "endianness". As it can't
change (this is the value of TARGET_WORDS_BIGENDIAN),
we store it to not have to ask every time we want to
know if we have to byte-swap a value.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
CC: Greg Kurz <groug@kaod.org>
CC: David Gibson <david@gibson.dropbear.id.au>
CC: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
qtest.c
tests/libqos/virtio-pci.c
tests/libqtest.c
tests/libqtest.h
tests/virtio-blk-test.c