configs,tests: use Sequencer port connect methods
This patch updates Ruby configuration scripts to use the functions defined in the RubySequencer python object to connect to cpu ports. Only the protocol-agnostic scripts were updated. Scripts that assume a specific protocol (e.g. configs/example/apu_se.py, gpu tests, etc) and scripts in which the obj connected to the RubySequencer is not a BaseCPU (e.g. the tests scripts) were not changed as they require a non-standard port wireup. Change-Id: I1e931ff0fc93f393cb36fbb8769ea4b48e1a1e86 Signed-off-by: Tiago Mück <tiago.muck@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31418 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -105,15 +105,7 @@ class MyCacheSystem(RubySystem):
|
||||
|
||||
# Connect the cpu's cache, interrupt, and TLB ports to Ruby
|
||||
for i,cpu in enumerate(cpus):
|
||||
cpu.icache_port = self.sequencers[i].slave
|
||||
cpu.dcache_port = self.sequencers[i].slave
|
||||
cpu.mmu.connectWalkerPorts(
|
||||
self.sequencers[i].slave, self.sequencers[i].slave)
|
||||
isa = buildEnv['TARGET_ISA']
|
||||
if isa == 'x86':
|
||||
cpu.interrupts[0].pio = self.sequencers[i].master
|
||||
cpu.interrupts[0].int_master = self.sequencers[i].slave
|
||||
cpu.interrupts[0].int_slave = self.sequencers[i].master
|
||||
self.sequencers[i].connectCpuPorts(cpu)
|
||||
|
||||
|
||||
class L1Cache(L1Cache_Controller):
|
||||
|
||||
@@ -103,15 +103,7 @@ class MyCacheSystem(RubySystem):
|
||||
|
||||
# Connect the cpu's cache, interrupt, and TLB ports to Ruby
|
||||
for i,cpu in enumerate(cpus):
|
||||
cpu.icache_port = self.sequencers[i].slave
|
||||
cpu.dcache_port = self.sequencers[i].slave
|
||||
cpu.mmu.connectWalkerPorts(
|
||||
self.sequencers[i].slave, self.sequencers[i].slave)
|
||||
isa = buildEnv['TARGET_ISA']
|
||||
if isa == 'x86':
|
||||
cpu.interrupts[0].pio = self.sequencers[i].master
|
||||
cpu.interrupts[0].int_master = self.sequencers[i].slave
|
||||
cpu.interrupts[0].int_slave = self.sequencers[i].master
|
||||
self.sequencers[i].connectCpuPorts(cpu)
|
||||
|
||||
class L1Cache(L1Cache_Controller):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user