run.py (12882:dd87d7f2f3e5) run.py (13718:89e8bcc7253b)
1# Copyright (c) 2017 Mark D. Hill and David A. Wood
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

--- 71 unchanged lines hidden (view full) ---

80 type=str,
81 help='A config file to initialize the system with.'\
82 + ' If more than one given, loads them in order given.')
83args = parser.parse_args()
84
85executable = args.executable
86
87for config in args.config:
1# Copyright (c) 2017 Mark D. Hill and David A. Wood
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

--- 71 unchanged lines hidden (view full) ---

80 type=str,
81 help='A config file to initialize the system with.'\
82 + ' If more than one given, loads them in order given.')
83args = parser.parse_args()
84
85executable = args.executable
86
87for config in args.config:
88 execfile(config)
88 exec(compile(open(config).read(), config, 'exec'))
89
90# Initialize all CPUs in a system
91def initCPUs(sys):
92 def initCPU(cpu):
93 # We might actually have a MemTest object or something similar
94 # here that just pretends to be a CPU.
95 try:
96 cpu.createThreads()

--- 25 unchanged lines hidden ---
89
90# Initialize all CPUs in a system
91def initCPUs(sys):
92 def initCPU(cpu):
93 # We might actually have a MemTest object or something similar
94 # here that just pretends to be a CPU.
95 try:
96 cpu.createThreads()

--- 25 unchanged lines hidden ---