Deleted Added
sdiff udiff text old ( 9647:5b6b315472e7 ) new ( 9665:6dbdeee787cc )
full compact
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
35
36def _listCpuTypes(option, opt, value, parser):
37 CpuConfig.print_cpu_list()
38 sys.exit(0)
39
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")
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 ---