]> git.proxmox.com Git - mirror_qemu.git/commit
armv7m: Abstract out the "load kernel" code
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 20 Feb 2017 15:35:55 +0000 (15:35 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 16:18:49 +0000 (16:18 +0000)
commit3651c28569ba2fa8e959b89681118642162273da
treeab7aa0ccf0782e49e420fc792755d9bbf138c1ce
parent1bbe5dc66b770d7bedd1d51d7935da948a510dd6
armv7m: Abstract out the "load kernel" code

Abstract the "load kernel" code out of armv7m_init() into its own
function.  This includes the registration of the CPU reset function,
to parallel how we handle this for A profile cores.

We make the function public so that boards which choose to
directly instantiate an ARMv7M device object can call it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1487604965-23220-2-git-send-email-peter.maydell@linaro.org
hw/arm/armv7m.c
include/hw/arm/arm.h