genini.py (13540:da30e62884ee) genini.py (13675:afeab32b3655)
1#!/usr/bin/env python2.7
2# Copyright (c) 2005 The Regents of The University of Michigan
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;

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

65from m5 import *
66
67for path in pathlist:
68 AddToPath(path)
69
70for arg in args:
71 m5execfile(arg, globals())
72
1#!/usr/bin/env python2.7
2# Copyright (c) 2005 The Regents of The University of Michigan
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;

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

65from m5 import *
66
67for path in pathlist:
68 AddToPath(path)
69
70for arg in args:
71 m5execfile(arg, globals())
72
73if globals().has_key('root') and isinstance(root, Root):
73if 'root' in globals() and isinstance(root, Root):
74 instantiate(root)
75else:
76 print("Instantiation skipped: no root object found.")
74 instantiate(root)
75else:
76 print("Instantiation skipped: no root object found.")