]> git.proxmox.com Git - mirror_qemu.git/commit
hw/nvme: fix mmio read
authorKlaus Jensen <k.jensen@samsung.com>
Tue, 13 Jul 2021 17:31:27 +0000 (19:31 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 26 Jul 2021 19:09:39 +0000 (21:09 +0200)
commit49e03457f1d7dfd2a3fd6affc32d8b69f066fb75
tree80c773382946cf1435b472e57814f052e20815da
parent5029de44b5352d466f1b6e7c0a9f19e1259d33b3
hw/nvme: fix mmio read

The new PMR test unearthed a long-standing issue with MMIO reads on
big-endian hosts.

Fix this by unconditionally storing all controller registers in little
endian.

Cc: Gollu Appalanaidu <anaidu.gollu@samsung.com>
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
hw/nvme/ctrl.c