dev-arm: improve Pl390 parameters
authorCiro Santilli <ciro.santilli@arm.com>
Thu, 30 Aug 2018 13:50:31 +0000 (14:50 +0100)
committerCiro Santilli <ciro.santilli@arm.com>
Wed, 12 Sep 2018 10:27:06 +0000 (10:27 +0000)
commitcadb03d17cf048c84e484227b4b6fd62713b7a0c
tree2a59b6bff80541411668bbde05f77ece52b32332
parent719eb033fe435133abf15501c249eec10d1c861f
dev-arm: improve Pl390 parameters

Remove default dist_addr and cpu_addr register addresses since those are
purely platform specific.

Parametrize the cpu_size parameter. RealViewPBX has the Gic CPU and
distributor base too close for the newer CPU size of 0x2000, leading to
overlap.

This was introduced in I90a9f669a46a37d79c6cc542087cf91f2044f104 and makes
using RealViewPBX fail with:

fatal: system.membus has two ports responding within range
[0x1f000100 : 0x1f0020ff]:
        system.realview.gic.pio
        system.realview.gic.pio

Change-Id: Ic6c0e6b3d4705ff369eb739d54a1173a47819b7d
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/12491
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/dev/arm/Gic.py
src/dev/arm/RealView.py
src/dev/arm/gic_pl390.cc
src/dev/arm/gic_pl390.hh