mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
tests: rename target_big_endian() as qvirtio_is_big_endian()
Move the definition to libqos/virtio.h as it must be used only with virtio functions. Add a QVirtioDevice parameter as it will be needed to know if the virtio device is using virtio 1.0 specification and thus is always little-endian (to do) Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
6b9cdf4cf1
commit
8b4b80c376
4 changed files with 25 additions and 29 deletions
|
@ -881,16 +881,6 @@ static inline int64_t clock_set(int64_t val)
|
|||
return qtest_clock_set(global_qtest, val);
|
||||
}
|
||||
|
||||
/**
|
||||
* target_big_endian:
|
||||
*
|
||||
* Returns: True if the architecture under test has a big endian configuration.
|
||||
*/
|
||||
static inline bool target_big_endian(void)
|
||||
{
|
||||
return qtest_big_endian(global_qtest);
|
||||
}
|
||||
|
||||
QDict *qmp_fd_receive(int fd);
|
||||
void qmp_fd_sendv(int fd, const char *fmt, va_list ap);
|
||||
void qmp_fd_send(int fd, const char *fmt, ...);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue