From da14789c32e14c62cdb0e11957607955e2a19c8a Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 19 Jan 2009 09:59:15 -0800 Subject: python: Try to isolate the stuff that's in the m5.internal package a bit more. --- src/python/m5/core.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/python/m5/core.py (limited to 'src/python/m5/core.py') diff --git a/src/python/m5/core.py b/src/python/m5/core.py new file mode 100644 index 000000000..34590016e --- /dev/null +++ b/src/python/m5/core.py @@ -0,0 +1,5 @@ +import internal + +def setOutputDir(dir): + internal.core.setOutputDir(dir) + -- cgit v1.2.3 From 64eb0dc9cdd22b8c1e55ff7faaae1cae83c0a1a9 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 4 Feb 2009 16:26:15 -0800 Subject: some new files are missing copyright notices --- src/python/m5/core.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src/python/m5/core.py') diff --git a/src/python/m5/core.py b/src/python/m5/core.py index 34590016e..232fe2ceb 100644 --- a/src/python/m5/core.py +++ b/src/python/m5/core.py @@ -1,3 +1,31 @@ +# Copyright (c) 2008 The Hewlett-Packard Development Company +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer; +# redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution; +# neither the name of the copyright holders nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors: Nathan Binkert + import internal def setOutputDir(dir): -- cgit v1.2.3 From 6f787e3d368eb248aee0854d99ed55e332d80170 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 5 Mar 2009 19:09:53 -0800 Subject: stats: create an enable phase, and a prepare phase. Enable more or less takes the place of check, but also allows stats to do some other configuration. Prepare moves all of the code that readies a stat for dumping into a separate function in preparation for supporting serialization of certain pieces of statistics data. While we're at it, clean up the visitor code and some of the python code. --- src/python/m5/core.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/python/m5/core.py') diff --git a/src/python/m5/core.py b/src/python/m5/core.py index 232fe2ceb..1d7985be6 100644 --- a/src/python/m5/core.py +++ b/src/python/m5/core.py @@ -27,7 +27,14 @@ # Authors: Nathan Binkert import internal +from internal.core import initAll, regAllStats def setOutputDir(dir): internal.core.setOutputDir(dir) +def initAll(): + internal.core.initAll() + +def regAllStats(): + internal.core.regAllStats() + -- cgit v1.2.3