hw/timer/armv7m_systick: Forbid non-privileged accesses
commit9bed521ec894d30c58088e2fa5da43f3814a54d8
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 4 Jul 2019 16:14:44 +0000 (4 17:14 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 4 Jul 2019 16:25:30 +0000 (4 17:25 +0100)
treef0e5e9dfab8744ae016f808637770865202c7a32
parent2884fbb60412049ec92389039ae716b32057382e
hw/timer/armv7m_systick: Forbid non-privileged accesses

Like most of the v7M memory mapped system registers, the systick
registers are accessible to privileged code only and user accesses
must generate a BusFault. We implement that for registers in
the NVIC proper already, but missed it for systick since we
implement it as a separate device. Correct the omission.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190617175317.27557-6-peter.maydell@linaro.org
hw/timer/armv7m_systick.c