Options.py (9647:5b6b315472e7) | Options.py (9665:6dbdeee787cc) |
---|---|
1# Copyright (c) 2013 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license 9# terms below provided that you ensure that this notice is replicated 10# unmodified and in its entirety in all distributions of the software, 11# modified or unmodified, in source code or in binary form. 12# |
|
1# Copyright (c) 2006-2008 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 --- 18 unchanged lines hidden (view full) --- 27# Authors: Lisa Hsu 28 29import m5 30from m5.defines import buildEnv 31from m5.objects import * 32from Benchmarks import * 33 34import CpuConfig | 13# Copyright (c) 2006-2008 The Regents of The University of Michigan 14# All rights reserved. 15# 16# Redistribution and use in source and binary forms, with or without 17# modification, are permitted provided that the following conditions are 18# met: redistributions of source code must retain the above copyright 19# notice, this list of conditions and the following disclaimer; 20# redistributions in binary form must reproduce the above copyright --- 18 unchanged lines hidden (view full) --- 39# Authors: Lisa Hsu 40 41import m5 42from m5.defines import buildEnv 43from m5.objects import * 44from Benchmarks import * 45 46import CpuConfig |
47import MemConfig |
|
35 36def _listCpuTypes(option, opt, value, parser): 37 CpuConfig.print_cpu_list() 38 sys.exit(0) 39 | 48 49def _listCpuTypes(option, opt, value, parser): 50 CpuConfig.print_cpu_list() 51 sys.exit(0) 52 |
53def _listMemTypes(option, opt, value, parser): 54 MemConfig.print_mem_list() 55 sys.exit(0) 56 |
|
40def addCommonOptions(parser): 41 # system options 42 parser.add_option("--list-cpu-types", 43 action="callback", callback=_listCpuTypes, 44 help="List available CPU types") 45 parser.add_option("--cpu-type", type="choice", default="atomic", 46 choices=CpuConfig.cpu_names(), 47 help = "type of cpu to run with") | 57def addCommonOptions(parser): 58 # system options 59 parser.add_option("--list-cpu-types", 60 action="callback", callback=_listCpuTypes, 61 help="List available CPU types") 62 parser.add_option("--cpu-type", type="choice", default="atomic", 63 choices=CpuConfig.cpu_names(), 64 help = "type of cpu to run with") |
65 parser.add_option("--list-mem-types", 66 action="callback", callback=_listMemTypes, 67 help="List available memory types") 68 parser.add_option("--mem-type", type="choice", default="simple_mem", 69 choices=MemConfig.mem_names(), 70 help = "type of memory to use") |
|
48 parser.add_option("--checker", action="store_true"); 49 parser.add_option("-n", "--num-cpus", type="int", default=1) 50 parser.add_option("--caches", action="store_true") 51 parser.add_option("--l2cache", action="store_true") 52 parser.add_option("--fastmem", action="store_true") 53 parser.add_option("--simpoint-profile", action="store_true", 54 help="Enable basic block profiling for SimPoints") 55 parser.add_option("--simpoint-interval", type="int", default=10000000, --- 147 unchanged lines hidden --- | 71 parser.add_option("--checker", action="store_true"); 72 parser.add_option("-n", "--num-cpus", type="int", default=1) 73 parser.add_option("--caches", action="store_true") 74 parser.add_option("--l2cache", action="store_true") 75 parser.add_option("--fastmem", action="store_true") 76 parser.add_option("--simpoint-profile", action="store_true", 77 help="Enable basic block profiling for SimPoints") 78 parser.add_option("--simpoint-interval", type="int", default=10000000, --- 147 unchanged lines hidden --- |