summary refs log tree commit diff stats
path: root/include/qemu/queue.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2015-01-20 15:19:35 +0000
committerPeter Maydell <peter.maydell@linaro.org>2015-01-20 15:19:35 +0000
commitde5ee4a888667ca0a198f0743d70075d70564117 (patch)
tree3f46b5de6be3f2033fb67b4d93bb031a98d8e69a /include/qemu/queue.h
parentdb5fd8d709fd57f4d4f11edfca9f421f657f4508 (diff)
downloadfocaccia-qemu-de5ee4a888667ca0a198f0743d70075d70564117.tar.gz
focaccia-qemu-de5ee4a888667ca0a198f0743d70075d70564117.zip
cpu_ldst.h: Don't define helpers if MMU_MODE*_SUFFIX not defined
Not all targets define a full set of suffix strings for the
NB_MMU_MODES that they have. In this situation, don't define any
helper functions for that mode, rather than defining helper functions
with no suffix at all. The MMU mode is still functional; it is merely
not directly accessible via cpu_ld*_MODE from target helper functions.

Also add an "NB_MMU_MODES >= 2" check to the definition of the mode 1
helpers -- some targets only define one MMU mode.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-id: 1421432008-6786-1-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'include/qemu/queue.h')
0 files changed, 0 insertions, 0 deletions