On 20 January 2015 at 10:21, Sergey Fedorov <serge.f...@gmail.com> wrote: > aarch64-softmmu/qemu-system-aarch64 -M virt -cpu cortex-a57,-aarch64 ...
> It seems a little confusing for me to specify '-aarch64' when forcing > AArch32 execution state. Why don't just specify 'aarch32' in command line > instead of '-aarch64' construction? This is one of the things we discussed during design of this patchset, and I agree the command line semantics are a bit odd. Essentially, they make sense from the PoV of the CPU object, because they're saying "I want a 32-bit only CPU", ie "I do not want the 64 bit feature this CPU defaults to". Specifying '+aarch32' wouldn't do anything, because the default Cortex-A57 already has 32-bit support. But from the PoV of the user, it's a bit odd. The other possible approach to this would be to have a machine model parameter for "force 32 bit boot", and have this turn off the CPU 64 bit feature. Other proposals welcome; I don't like the UI we end up exposing to the user here, it's just what falls out of the natural way to model things at the CPU QOM property level. -- PMM