cpu: Apply the ARM TLB rework to the O3 checker CPU.
[gem5.git] / src / unittest / genini.py
index a969a6ee46298d93c4fa14b9aae4309ff0dbdb96..ea2763a340087a5c12a4d9aca6dfa7d68f920b58 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.7
 # Copyright (c) 2005 The Regents of The University of Michigan
 # All rights reserved.
 #
@@ -27,6 +27,8 @@
 #
 # Authors: Nathan Binkert
 
+from __future__ import print_function
+
 import getopt, os, os.path, sys
 from os.path import join as joinpath, realpath
 
@@ -68,7 +70,7 @@ for path in pathlist:
 for arg in args:
     m5execfile(arg, globals())
 
-if globals().has_key('root') and isinstance(root, Root):
+if 'root' in globals() and isinstance(root, Root):
     instantiate(root)
 else:
-    print "Instantiation skipped: no root object found."
+    print("Instantiation skipped: no root object found.")