hw/arm/armsse: Give each CPU its own view of memory
commitd847ca5128351ea3be3a92be74d7bac74e59f048
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 1 Feb 2019 14:55:42 +0000 (1 14:55 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 1 Feb 2019 14:55:42 +0000 (1 14:55 +0000)
treed82a8b4ee8624268a2e65f8c83f1210ab7ab6b0e
parent91c1e9fcbd7548db3687db946a778b8f34d1343c
hw/arm/armsse: Give each CPU its own view of memory

Give each CPU its own container memory region. This is necessary
for two reasons:
 * some devices are instantiated one per CPU and the CPU sees only
   its own device
 * since a memory region can only be put into one container, we must
   give each armv7m object a different MemoryRegion as its 'memory'
   property, or a dual-CPU configuration will assert on realize when
   the second armv7m object tries to put the MR into a container when
   it is already in the first armv7m object's container

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190121185118.18550-13-peter.maydell@linaro.org
hw/arm/armsse.c
include/hw/arm/armsse.h