|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH] memory: make ram device read/write endian sensitive |
Date: | Tue, 21 Feb 2017 19:53:56 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 21/02/2017 19:09, Peter Maydell wrote: > In this instance I don't understand the patch. The ram_device > mem-ops are there to deal with memory regions backed by a > lump of RAM, right? Lumps of memory are always the endianness > of the host CPU by definition, so DEVICE_NATIVE_ENDIAN and > no swapping in the accessors seems like it ought to be the right > thing... DEVICE_NATIVE_ENDIAN is the endianness of the target CPU however. So perhaps we need to add DEVICE_HOST_ENDIAN instead? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |