se.py (3476:0e26b5458236) | se.py (3477:eaf445891a4e) |
---|---|
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) | 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) |
44print m5_root 45print config_path 46print config_root | |
47 | 44 |
48 | |
49parser = optparse.OptionParser() 50 51# Benchmark options 52parser.add_option("-c", "--cmd", 53 default=os.path.join(m5_root, "tests/test-progs/hello/bin/alpha/linux/hello"), 54 help="The binary to run in syscall emulation mode.") 55parser.add_option("-o", "--options", default="", 56 help="The options to pass to the binary, use \" \" around the entire\ --- 69 unchanged lines hidden --- | 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 --- |