On 22 November 2018 at 18:23, Paolo Bonzini <pbonz...@redhat.com> wrote:
> The CMB is marked as DEVICE_LITTLE_ENDIAN, so the data must be
> read/written as if it was little-endian output (in the case of
> big endian, we get two swaps, one in the memory core and one
> in nvme.c).
>
> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
> ---
>  hw/block/nvme.c | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)

Tested-by: Peter Maydell <peter.mayd...@linaro.org>

This is sufficient to get the nvme-test to pass on sparc
(big-endian host).

thanks
-- PMM

Reply via email to