fs.py (3409:769707cf0664) | fs.py (3444:6abefa632e10) |
---|---|
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 --- 25 unchanged lines hidden (view full) --- 34from FSConfig import * 35from SysPaths import * 36from Benchmarks import * 37import Simulation 38 39if not m5.build_env['FULL_SYSTEM']: 40 m5.panic("This script requires full-system mode (ALPHA_FS).") 41 | 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 --- 25 unchanged lines hidden (view full) --- 34from FSConfig import * 35from SysPaths import * 36from Benchmarks import * 37import Simulation 38 39if not m5.build_env['FULL_SYSTEM']: 40 m5.panic("This script requires full-system mode (ALPHA_FS).") 41 |
42# Get paths we might need. It's expected this file is in m5/configs/example. 43config_path = os.path.dirname(os.path.abspath(__file__)) 44config_root = os.path.dirname(config_path) 45 |
|
42parser = optparse.OptionParser() 43 44# Benchmark options 45parser.add_option("--dual", action="store_true", 46 help="Simulate two systems attached with an ethernet link") 47parser.add_option("-b", "--benchmark", action="store", type="string", 48 dest="benchmark", 49 help="Specify the benchmark to run. Available benchmarks: %s"\ 50 % DefinedBenchmarks) 51 52# Metafile options 53parser.add_option("--etherdump", action="store", type="string", dest="etherdump", 54 help="Specify the filename to dump a pcap capture of the" \ 55 "ethernet traffic") 56 | 46parser = optparse.OptionParser() 47 48# Benchmark options 49parser.add_option("--dual", action="store_true", 50 help="Simulate two systems attached with an ethernet link") 51parser.add_option("-b", "--benchmark", action="store", type="string", 52 dest="benchmark", 53 help="Specify the benchmark to run. Available benchmarks: %s"\ 54 % DefinedBenchmarks) 55 56# Metafile options 57parser.add_option("--etherdump", action="store", type="string", dest="etherdump", 58 help="Specify the filename to dump a pcap capture of the" \ 59 "ethernet traffic") 60 |
61execfile(os.path.join(config_root, "common", "Options.py")) |
|
57 | 62 |
58execfile("Options.py") 59 | |
60(options, args) = parser.parse_args() 61 62if args: 63 print "Error: script doesn't take any positional arguments" 64 sys.exit(1) 65 66# driver system CPU is always simple... note this is an assignment of 67# a class, not an instance. --- 53 unchanged lines hidden --- | 63(options, args) = parser.parse_args() 64 65if args: 66 print "Error: script doesn't take any positional arguments" 67 sys.exit(1) 68 69# driver system CPU is always simple... note this is an assignment of 70# a class, not an instance. --- 53 unchanged lines hidden --- |