1# Copyright (c) 2006 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 --- 21 unchanged lines hidden (view full) --- 30 31import m5 32from m5.objects import * 33m5.AddToPath('../common') 34from FSConfig import * 35from SysPaths import * 36from Benchmarks import * 37import Simulation |
38from Caches import * |
39 40if not m5.build_env['FULL_SYSTEM']: 41 m5.panic("This script requires full-system mode (ALPHA_FS).") 42 43# Get paths we might need. It's expected this file is in m5/configs/example. 44config_path = os.path.dirname(os.path.abspath(__file__)) 45config_root = os.path.dirname(config_path) 46 --- 53 unchanged lines hidden (view full) --- 100 bm = [SysConfig()] 101 102test_sys = makeLinuxAlphaSystem(test_mem_mode, bm[0]) 103np = options.num_cpus 104test_sys.cpu = [TestCPUClass(cpu_id=i) for i in xrange(np)] 105for i in xrange(np): 106 if options.caches and not options.standard_switch: 107 test_sys.cpu[i].addPrivateSplitL1Caches(L1Cache(size = '32kB'), |
108 L1Cache(size = '64kB')) |
109 test_sys.cpu[i].connectMemPorts(test_sys.membus) 110 test_sys.cpu[i].mem = test_sys.physmem 111 112if len(bm) == 2: 113 drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1]) 114 drive_sys.cpu = DriveCPUClass(cpu_id=0) 115 drive_sys.cpu.connectMemPorts(drive_sys.membus) 116 drive_sys.cpu.mem = drive_sys.physmem 117 root = makeDualRoot(test_sys, drive_sys, options.etherdump) 118elif len(bm) == 1: 119 root = Root(clock = '1THz', system = test_sys) 120else: 121 print "Error I don't know how to create more than 2 systems." 122 sys.exit(1) 123 124Simulation.run(options, root, test_sys) |