target-arm: Add CPU property to disable AArch64
commitfb8d6c24b095c426151b9bba8c8b0e58b03d6503
authorGreg Bellows <greg.bellows@linaro.org>
Fri, 13 Feb 2015 05:46:08 +0000 (13 05:46 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Feb 2015 05:46:08 +0000 (13 05:46 +0000)
tree94e96b64b58b6ce17a106222f301bd115af36f9d
parent332261de2b979610aacde22eb15ef6e59f3c2da9
target-arm: Add CPU property to disable AArch64

Adds registration and get/set functions for enabling/disabling the AArch64
execution state on AArch64 CPUs.  By default AArch64 execution state is enabled
on AArch64 CPUs, setting the property to off, will disable the execution state.
The below QEMU invocation would have AArch64 execution state disabled.

    $ ./qemu-system-aarch64 -machine virt -cpu cortex-a57,aarch64=off

Also adds stripping of features from CPU model string in acquiring the ARM CPU
by name.

Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1423736974-14254-2-git-send-email-greg.bellows@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu.c
target-arm/cpu64.c