fs.py (3304:c5917aeb8e2f) | fs.py (3312:dbaec4804adf) |
---|---|
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 --- 28 unchanged lines hidden (view full) --- 37 38if not m5.build_env['FULL_SYSTEM']: 39 m5.panic("This script requires full-system mode (ALPHA_FS).") 40 41parser = optparse.OptionParser() 42 43parser.add_option("-d", "--detailed", action="store_true") 44parser.add_option("-t", "--timing", action="store_true") | 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 --- 28 unchanged lines hidden (view full) --- 37 38if not m5.build_env['FULL_SYSTEM']: 39 m5.panic("This script requires full-system mode (ALPHA_FS).") 40 41parser = optparse.OptionParser() 42 43parser.add_option("-d", "--detailed", action="store_true") 44parser.add_option("-t", "--timing", action="store_true") |
45parser.add_option("-n", "--num_cpus", type="int", default=1) |
|
45parser.add_option("-m", "--maxtick", type="int") 46parser.add_option("--maxtime", type="float") 47parser.add_option("--dual", action="store_true", 48 help="Simulate two systems attached with an ethernet link") 49parser.add_option("-b", "--benchmark", action="store", type="string", 50 dest="benchmark", 51 help="Specify the benchmark to run. Available benchmarks: %s"\ 52 % DefinedBenchmarks) --- 38 unchanged lines hidden (view full) --- 91 sys.exit(1) 92else: 93 if options.dual: 94 bm = [SysConfig(), SysConfig()] 95 else: 96 bm = [SysConfig()] 97 98server_sys = makeLinuxAlphaSystem(server_mem_mode, bm[0]) | 46parser.add_option("-m", "--maxtick", type="int") 47parser.add_option("--maxtime", type="float") 48parser.add_option("--dual", action="store_true", 49 help="Simulate two systems attached with an ethernet link") 50parser.add_option("-b", "--benchmark", action="store", type="string", 51 dest="benchmark", 52 help="Specify the benchmark to run. Available benchmarks: %s"\ 53 % DefinedBenchmarks) --- 38 unchanged lines hidden (view full) --- 92 sys.exit(1) 93else: 94 if options.dual: 95 bm = [SysConfig(), SysConfig()] 96 else: 97 bm = [SysConfig()] 98 99server_sys = makeLinuxAlphaSystem(server_mem_mode, bm[0]) |
99server_sys.cpu = ServerCPUClass(cpu_id=0) 100server_sys.cpu.connectMemPorts(server_sys.membus) 101server_sys.cpu.mem = server_sys.physmem | 100np = options.num_cpus 101server_sys.cpu = [ServerCPUClass(cpu_id=i) for i in xrange(np)] 102for i in xrange(np): 103 server_sys.cpu[i].connectMemPorts(server_sys.membus) 104 server_sys.cpu[i].mem = server_sys.physmem |
102 103if len(bm) == 2: 104 client_sys = makeLinuxAlphaSystem(client_mem_mode, bm[1]) 105 client_sys.cpu = ClientCPUClass(cpu_id=0) 106 client_sys.cpu.connectMemPorts(client_sys.membus) 107 client_sys.cpu.mem = client_sys.physmem 108 root = makeDualRoot(server_sys, client_sys, options.etherdump) 109elif len(bm) == 1: --- 55 unchanged lines hidden --- | 105 106if len(bm) == 2: 107 client_sys = makeLinuxAlphaSystem(client_mem_mode, bm[1]) 108 client_sys.cpu = ClientCPUClass(cpu_id=0) 109 client_sys.cpu.connectMemPorts(client_sys.membus) 110 client_sys.cpu.mem = client_sys.physmem 111 root = makeDualRoot(server_sys, client_sys, options.etherdump) 112elif len(bm) == 1: --- 55 unchanged lines hidden --- |