diff options
| author | Thomas Huth <thuth@redhat.com> | 2025-04-30 15:28:17 +0200 |
|---|---|---|
| committer | Fabiano Rosas <farosas@suse.de> | 2025-05-09 16:14:31 -0300 |
| commit | 3008224ca8a7415323f67d58d8c03e69bde49092 (patch) | |
| tree | 5e669e0b04dc5201e3f717a94559d9c99848dad1 /hw/gpio/imx_gpio.c | |
| parent | 246069e850327b3d5c7f460461fc0bbf0f817654 (diff) | |
| download | focaccia-qemu-3008224ca8a7415323f67d58d8c03e69bde49092.tar.gz focaccia-qemu-3008224ca8a7415323f67d58d8c03e69bde49092.zip | |
tests/qtest/libqos: Avoid double swapping when using modern virtio
The logic in the qvirtio_read/write function is rather a headache, involving byte-swapping when the target is big endian, just to maybe involve another byte-swapping in the qtest_read/write function immediately afterwards (on the QEMU side). Let's do it in a more obvious way here: For virtio 1.0, we know that the values have to be little endian, so let's read/write the bytes in that well known order here. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Tested-by: Alex Bennée <alex.bennee@linaro.org> Message-ID: <20250430132817.610903-1-thuth@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'hw/gpio/imx_gpio.c')
0 files changed, 0 insertions, 0 deletions