diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-04-23 13:11:31 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-04-25 17:09:58 +0200 |
| commit | 8af0e52b28c553c901e7c564c3380cd56d363053 (patch) | |
| tree | 232c2ff0eb5f32d61ba7e38d05e46ced659f5c3b /system/memory.c | |
| parent | 16704598bf3fa8578880e7146a0196d9411ea098 (diff) | |
| download | focaccia-qemu-8af0e52b28c553c901e7c564c3380cd56d363053.tar.gz focaccia-qemu-8af0e52b28c553c901e7c564c3380cd56d363053.zip | |
system/memory: Remove DEVICE_HOST_ENDIAN definition
Since the previous commit ("exec/memory.h: make devend_memop
"target defines" agnostic") there is a single use of the
DEVICE_HOST_ENDIAN definition in ram_device_mem_ops: inline
it and remove its definition altogether.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250423111625.10424-1-philmd@linaro.org>
Diffstat (limited to 'system/memory.c')
| -rw-r--r-- | system/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/memory.c b/system/memory.c index 67e433095b..71434e7ad0 100644 --- a/system/memory.c +++ b/system/memory.c @@ -1382,7 +1382,7 @@ static void memory_region_ram_device_write(void *opaque, hwaddr addr, static const MemoryRegionOps ram_device_mem_ops = { .read = memory_region_ram_device_read, .write = memory_region_ram_device_write, - .endianness = DEVICE_HOST_ENDIAN, + .endianness = HOST_BIG_ENDIAN ? DEVICE_BIG_ENDIAN : DEVICE_LITTLE_ENDIAN, .valid = { .min_access_size = 1, .max_access_size = 8, |