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 --- 27 unchanged lines hidden (view full) --- 36m5.AddToPath('../common') 37import Simulation 38from Caches import * 39 40# Get paths we might need. It's expected this file is in m5/configs/example. 41config_path = os.path.dirname(os.path.abspath(__file__)) 42config_root = os.path.dirname(config_path) 43m5_root = os.path.dirname(config_root) |
44 |
45parser = optparse.OptionParser() 46 47# Benchmark options 48parser.add_option("-c", "--cmd", 49 default=os.path.join(m5_root, "tests/test-progs/hello/bin/alpha/linux/hello"), 50 help="The binary to run in syscall emulation mode.") 51parser.add_option("-o", "--options", default="", 52 help="The options to pass to the binary, use \" \" around the entire\ --- 69 unchanged lines hidden --- |