[Qemu-devel] [PATCH 0/2] v8m: make systick banked

Peter Maydell posted 2 patches 6 years, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1512154296-5652-1-git-send-email-peter.maydell@linaro.org
Test checkpatch passed
Test docker passed
Test ppc passed
Test s390x passed
include/hw/intc/armv7m_nvic.h |  4 +-
hw/intc/armv7m_nvic.c         | 91 ++++++++++++++++++++++++++++++++++++-------
2 files changed, 79 insertions(+), 16 deletions(-)
[Qemu-devel] [PATCH 0/2] v8m: make systick banked
Posted by Peter Maydell 6 years, 4 months ago
This patchset makes the systick device be banked between
security states for ARM v8M.

It is perhaps not the absolute cleanest way to implement
this banking, but the alternative (which I had an irc
discussion with Paolo about some weeks back) would involve
adding a feature to our IOMMU abstraction to allow them
to change transaction attributes, refactoring the NVIC
so that it exposes memory regions for its S and NS views
separately (to be mapped into the CPU's S and NS address
spaces by the board code), and then using an IOMMU region
to implement the "S alias that behaves like NS" memory
region. This version is less than 100 lines by diffstat :-)

thanks
-- PMM

Peter Maydell (2):
  nvic: Make nvic_sysreg_ns_ops work with any MemoryRegion
  nvic: Make systick banked

 include/hw/intc/armv7m_nvic.h |  4 +-
 hw/intc/armv7m_nvic.c         | 91 ++++++++++++++++++++++++++++++++++++-------
 2 files changed, 79 insertions(+), 16 deletions(-)

-- 
2.7.4