]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/cpu.c
target/arm: Move PMSAv7 reset into arm_cpu_reset() so M profile MPUs get reset
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Jul 2017 10:59:09 +0000 (11:59 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 31 Jul 2017 12:09:52 +0000 (13:09 +0100)
commit69ceea64bf565559a2b865ffb2a097d2caab805b
tree214d7c19d6ec5272b76436eea1486eb15ef74a94
parent8531eb4f614a60e6582d4832b15eee09f7d27874
target/arm: Move PMSAv7 reset into arm_cpu_reset() so M profile MPUs get reset

When the PMSAv7 implementation was originally added it was for R profile
CPUs only, and reset was handled using the cpreg .resetfn hooks.
Unfortunately for M profile cores this doesn't work, because they do
not register any cpregs. Move the reset handling into arm_cpu_reset(),
where it will work for both R profile and M profile cores.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1501153150-19984-5-git-send-email-peter.maydell@linaro.org
target/arm/cpu.c
target/arm/helper.c