diff options
| author | Paolo Bonzini | 2019-09-12 16:02:42 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2019-09-16 13:47:37 +0200 |
| commit | 7a3df11c2a647cf889f6ede8b7d5f81438bb5cc9 (patch) | |
| tree | 32c7280b76f3b4dca894f10128491e5e263f7e2e /docs/cpu-hotplug.rst | |
| parent | memory: fetch pmem size in get_file_size() (diff) | |
| download | qemu-7a3df11c2a647cf889f6ede8b7d5f81438bb5cc9.tar.gz qemu-7a3df11c2a647cf889f6ede8b7d5f81438bb5cc9.tar.xz qemu-7a3df11c2a647cf889f6ede8b7d5f81438bb5cc9.zip | |
memory: inline and optimize devend_memop
devend_memop can rely on the fact that the result is always either
0 or MO_BSWAP, corresponding respectively to host endianness and
the opposite. Native (target) endianness in turn can be either
the host endianness, in which case MO_BSWAP is only returned for
host-opposite endianness, or the opposite, in which case 0 is only
returned for host endianness.
With this in mind, devend_memop can be compiled as a setcond+shift
for every target. Do this and, while at it, move it to
include/exec/memory.h since !NEED_CPU_H files do not (and should not)
need it.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/cpu-hotplug.rst')
0 files changed, 0 insertions, 0 deletions
