diff options
author | Lisa Hsu <hsul@eecs.umich.edu> | 2006-12-04 19:37:50 -0500 |
---|---|---|
committer | Lisa Hsu <hsul@eecs.umich.edu> | 2006-12-04 19:37:50 -0500 |
commit | e86832bed8c30b25ea074557a0484c0c2ffdf63b (patch) | |
tree | c57529d2d9479f549aea159b20249c4d44da113a | |
parent | 0d62558d550454488789becbef0fef96465d4b7b (diff) | |
download | gem5-e86832bed8c30b25ea074557a0484c0c2ffdf63b.tar.xz |
automatically build sparc system or alpha system.
configs/example/fs.py:
make it an automatic system build for alpha vs. sparc.
--HG--
extra : convert_revision : 4c217cf9309c6209be7f80e358f6640857a785e8
-rw-r--r-- | configs/example/fs.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/configs/example/fs.py b/configs/example/fs.py index a70a60b97..d479d717e 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -92,7 +92,13 @@ else: else: bm = [SysConfig()] -test_sys = makeLinuxAlphaSystem(test_mem_mode, bm[0]) +if m5.build_env['TARGET_ISA'] == "alpha": + test_sys = makeLinuxAlphaSystem(test_mem_mode, bm[0]) +elif m5.build_env['TARGET_ISA'] == "sparc": + test_sys = makeSparcSystem(test_mem_mode, bm[0]) +else: + m5.panic("incapable of building non-alpha or non-sparc full system!") + np = options.num_cpus if options.l2cache: @@ -113,7 +119,10 @@ for i in xrange(np): test_sys.cpu[i].connectMemPorts(test_sys.membus) if len(bm) == 2: - drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1]) + if m5.build_env['TARGET_ISA'] == 'alpha': + drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1]) + elif m5.build_env['TARGET_ISA'] == 'sparc': + drive_sys = makeSparcSystem(drive_mem_mode, bm[1]) drive_sys.cpu = DriveCPUClass(cpu_id=0) drive_sys.cpu.connectMemPorts(drive_sys.membus) root = makeDualRoot(test_sys, drive_sys, options.etherdump) |