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 --- 32 unchanged lines hidden (view full) --- 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 47parser = optparse.OptionParser() 48 |
49# System options 50parser.add_option("--kernel", action="store", type="string") 51parser.add_option("--script", action="store", type="string") 52 |
53# Benchmark options 54parser.add_option("--l2cache", action="store_true") 55parser.add_option("--dual", action="store_true", 56 help="Simulate two systems attached with an ethernet link") 57parser.add_option("-b", "--benchmark", action="store", type="string", 58 dest="benchmark", 59 help="Specify the benchmark to run. Available benchmarks: %s"\ 60 % DefinedBenchmarks) --- 37 unchanged lines hidden (view full) --- 98 99if m5.build_env['TARGET_ISA'] == "alpha": 100 test_sys = makeLinuxAlphaSystem(test_mem_mode, bm[0]) 101elif m5.build_env['TARGET_ISA'] == "sparc": 102 test_sys = makeSparcSystem(test_mem_mode, bm[0]) 103else: 104 m5.panic("incapable of building non-alpha or non-sparc full system!") 105 |
106if options.kernel is not None: 107 test_sys.kernel = binary(options.kernel) 108 109if options.script is not None: 110 test_sys.readfile = options.script 111 |
112np = options.num_cpus 113 114if options.l2cache: 115 test_sys.l2 = L2Cache(size = '2MB') 116 test_sys.tol2bus = Bus() 117 test_sys.l2.cpu_side = test_sys.tol2bus.port 118 test_sys.l2.mem_side = test_sys.membus.port 119 --- 26 unchanged lines hidden --- |