From: Ali Saidi Date: Tue, 10 Jan 2012 00:08:20 +0000 (-0600) Subject: ARM: Add support for running multiple systems X-Git-Tag: stable_2012_06_28~275^2~36 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bcb71963ebb3c226f4f36f6d5907c6fb3bc10b64;p=gem5.git ARM: Add support for running multiple systems --- diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py index 3e0a3df2e..f54d63852 100644 --- a/configs/common/FSConfig.py +++ b/configs/common/FSConfig.py @@ -483,6 +483,15 @@ def makeDualRoot(testSystem, driveSystem, dumpfile): self.etherlink.int0 = Parent.testsys.tsunami.ethernet.interface self.etherlink.int1 = Parent.drivesys.tsunami.ethernet.interface + if hasattr(testSystem, 'realview'): + self.etherlink.int0 = Parent.testsys.realview.ethernet.interface + self.etherlink.int1 = Parent.drivesys.realview.ethernet.interface + elif hasattr(testSystem, 'tsunami'): + self.etherlink.int0 = Parent.testsys.tsunami.ethernet.interface + self.etherlink.int1 = Parent.drivesys.tsunami.ethernet.interface + else: + fatal("Don't know how to connect these system together") + if dumpfile: self.etherdump = EtherDump(file=dumpfile) self.etherlink.dump = Parent.etherdump diff --git a/configs/example/fs.py b/configs/example/fs.py index 8ae8d8310..05e35c4ba 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -192,8 +192,8 @@ if len(bm) == 2: elif buildEnv['TARGET_ISA'] == 'x86': drive_sys = makeX86System(drive_mem_mode, np, bm[1]) elif buildEnv['TARGET_ISA'] == 'arm': - drive_sys = makeArmSystem(drive_mem_mode, - machine_options.machine_type, bm[1]) + drive_sys = makeArmSystem(drive_mem_mode, options.machine_type, bm[1]) + drive_sys.cpu = DriveCPUClass(cpu_id=0) drive_sys.cpu.connectAllPorts(drive_sys.membus) if options.fastmem: diff --git a/src/dev/arm/pl111.cc b/src/dev/arm/pl111.cc index e13045338..958f07aa7 100644 --- a/src/dev/arm/pl111.cc +++ b/src/dev/arm/pl111.cc @@ -67,7 +67,7 @@ Pl111::Pl111(const Params *p) { pioSize = 0xFFFF; - pic = simout.create("framebuffer.bmp", true); + pic = simout.create(csprintf("%s.framebuffer.bmp", sys->name()), true); dmaBuffer = new uint8_t[LcdMaxWidth * LcdMaxHeight * sizeof(uint32_t)];