On 2/14/19 4:50 AM, Peter Maydell wrote: > The Peripheral Protection Controller's handling of unused ports > is that if there is nothing connected to the port's downstream > then it does not create the sysbus MMIO region for the upstream > end of the port. This results in odd behaviour when there is > an unused port in the middle of the range: since sysbus MMIO > regions are implicitly consecutively allocated, any used ports > above the unused ones end up with sysbus MMIO region numbers > that don't match the port number. > > Avoid this numbering mismatch by creating dummy MMIO regions > for the unused ports. This doesn't change anything for our > existing boards, which don't have any gaps in the middle of > the port ranges they use; but it will be needed for the Musca > board. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > include/hw/misc/tz-ppc.h | 8 +++++++- > hw/misc/tz-ppc.c | 32 ++++++++++++++++++++++++++++++++ > 2 files changed, 39 insertions(+), 1 deletion(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~