1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 85 unchanged lines hidden (view full) --- 94 bm = [SysConfig(), SysConfig()] 95 else: 96 bm = [SysConfig()] 97 98if m5.build_env['TARGET_ISA'] == "alpha": 99 test_sys = makeLinuxAlphaSystem(test_mem_mode, bm[0]) 100elif m5.build_env['TARGET_ISA'] == "sparc": 101 test_sys = makeSparcSystem(test_mem_mode, bm[0]) |
102elif m5.build_env['TARGET_ISA'] == "x86": 103 test_sys = makeX86System(test_mem_mode, bm[0]) |
104else: 105 m5.panic("incapable of building non-alpha or non-sparc full system!") 106 107if options.kernel is not None: 108 test_sys.kernel = binary(options.kernel) 109 110if options.script is not None: 111 test_sys.readfile = options.script --- 25 unchanged lines hidden (view full) --- 137 if options.fastmem: 138 test_sys.cpu[i].physmem_port = test_sys.physmem.port 139 140if len(bm) == 2: 141 if m5.build_env['TARGET_ISA'] == 'alpha': 142 drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1]) 143 elif m5.build_env['TARGET_ISA'] == 'sparc': 144 drive_sys = makeSparcSystem(drive_mem_mode, bm[1]) |
145 elif m5.build.env['TARGET_ISA'] == 'x86': 146 drive_sys = makeX86System(drive_mem_mode, bm[1]) |
147 drive_sys.cpu = DriveCPUClass(cpu_id=0) 148 drive_sys.cpu.connectMemPorts(drive_sys.membus) 149 if options.fastmem: 150 drive_sys.cpu.physmem_port = drive_sys.physmem.port 151 if options.kernel is not None: 152 drive_sys.kernel = binary(options.kernel) 153 154 root = makeDualRoot(test_sys, drive_sys, options.etherdump) 155elif len(bm) == 1: 156 root = Root(system=test_sys) 157else: 158 print "Error I don't know how to create more than 2 systems." 159 sys.exit(1) 160 161Simulation.run(options, root, test_sys, FutureClass) |