learning-gem5-p1-simple.py (11475:d372458be20f) | learning-gem5-p1-simple.py (13619:44b5224b2ff4) |
---|---|
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; --- 19 unchanged lines hidden (view full) --- 28# Authors: Jason Lowe-Power 29 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): | 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; --- 19 unchanged lines hidden (view full) --- 28# Authors: Jason Lowe-Power 29 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 43 # Execute the script we are wrapping 44 execfile(srcpath('configs/learning_gem5/part1/simple.py')) | 36 run_config('configs/learning_gem5/part1/simple.py') |