ruby_random_test.py (8801:1a84c6a81299) | ruby_random_test.py (8803:f6c5785bc8fd) |
---|---|
1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2009 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 24 unchanged lines hidden (view full) --- 33from m5.defines import buildEnv 34from m5.util import addToPath 35import os, optparse, sys 36addToPath('../common') 37addToPath('../ruby') 38 39import Ruby 40 | 1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2009 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 24 unchanged lines hidden (view full) --- 33from m5.defines import buildEnv 34from m5.util import addToPath 35import os, optparse, sys 36addToPath('../common') 37addToPath('../ruby') 38 39import Ruby 40 |
41if buildEnv['FULL_SYSTEM']: 42 panic("This script requires system-emulation mode (*_SE).") 43 | |
44# Get paths we might need. It's expected this file is in m5/configs/example. 45config_path = os.path.dirname(os.path.abspath(__file__)) 46config_root = os.path.dirname(config_path) 47m5_root = os.path.dirname(config_root) 48 49parser = optparse.OptionParser() 50 51parser.add_option("-l", "--checks", metavar="N", default=100, --- 95 unchanged lines hidden --- | 41# Get paths we might need. It's expected this file is in m5/configs/example. 42config_path = os.path.dirname(os.path.abspath(__file__)) 43config_root = os.path.dirname(config_path) 44m5_root = os.path.dirname(config_root) 45 46parser = optparse.OptionParser() 47 48parser.add_option("-l", "--checks", metavar="N", default=100, --- 95 unchanged lines hidden --- |