Files
qemu-esp-boards/include/hw
Greg Kurz e5157e313c virtio: optimize virtio_access_is_big_endian() for little-endian targets
When adding cross-endian support, we introduced the TARGET_IS_BIENDIAN macro
and the virtio_access_is_big_endian() helper to have a branchless fast path
in the virtio memory accessors for targets that don't switch endian.

This was considered as a strong requirement at the time.

Now we have added a runtime check for virtio 1.0, which ruins the benefit
of the virtio_access_is_big_endian() helper for always little-endian targets.

With this patch, always little-endian targets stop checking for virtio 1.0,
since the result is little-endian in all cases.

Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
2016-02-16 12:05:18 +02:00
..
2016-01-25 14:35:23 -05:00
2015-10-02 16:22:02 -03:00
2015-09-07 10:39:30 +01:00
2016-02-06 20:44:10 +02:00
2015-09-07 10:39:30 +01:00
2016-01-30 23:37:36 +11:00
2015-12-04 09:39:55 +03:00
2015-09-25 12:04:43 +02:00
2016-01-16 12:01:23 +00:00
2016-01-25 14:35:23 -05:00