learning-gem5-p1-simple.py (11457:21434dcc83d5) | learning-gem5-p1-simple.py (11475:d372458be20f) |
---|---|
1# -*- coding: utf-8 -*- 2# Copyright (c) 2015 Jason Lowe-Power 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; --- 21 unchanged lines hidden (view full) --- 30# A wrapper around configs/learning_gem5/part1/simple.py 31 32# For some reason, this is implicitly needed by run.py 33root = None 34 35def run_test(root): 36 # Called from tests/run.py 37 | 1# -*- coding: utf-8 -*- 2# Copyright (c) 2015 Jason Lowe-Power 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; --- 21 unchanged lines hidden (view full) --- 30# A wrapper around configs/learning_gem5/part1/simple.py 31 32# For some reason, this is implicitly needed by run.py 33root = None 34 35def run_test(root): 36 # Called from tests/run.py 37 |
38 # Set the working directory in case we are executing from 39 # outside gem5's source tree 40 import os 41 os.chdir(os.path.join(os.path.dirname(__file__), "../")) 42 |
|
38 # Execute the script we are wrapping | 43 # Execute the script we are wrapping |
39 execfile('configs/learning_gem5/part1/simple.py') | 44 execfile(srcpath('configs/learning_gem5/part1/simple.py')) |