gem5/python/m5
Steve Reinhardt 8dff74b26f Clean up import situation... key things are:
- global tracking of legitimate param types in
separate dict keeps us from having to import
objects in config.py, which gets rid of nasty
circular dependence
- use __all__ in config.py and restrict imports
from mpy_importer to reduce m5 namespace pollution

python/m5/__init__.py:
    Try to limit namespace pollution by only importing
    what's needed from mpy_importer.
    Explicitly set up legal parameter types rather than
    relying on eval().
python/m5/config.py:
    Use empty ParamType base class to distinguish
    types that are legitimate SimObject params.
    Explicitly add these to global param_types map.
    Rework CheckedInt and Range classes a little bit
    to fit in better with the model.
    No need to import objects here any longer.
    Add __all__ list to specify subset of names that
    get exported on 'from m5.config import *'.

--HG--
extra : convert_revision : 01c6e82e0b175fc9b3df25dd0cc80ecd842680bc
2005-03-13 00:36:06 -05:00
..
objects move the conversion stuff that was in configs/kernel/Config.py into 2005-03-11 18:47:11 -05:00
__init__.py Clean up import situation... key things are: 2005-03-13 00:36:06 -05:00
config.py Clean up import situation... key things are: 2005-03-13 00:36:06 -05:00
convert.py move the conversion stuff that was in configs/kernel/Config.py into 2005-03-11 18:47:11 -05:00
smartdict.py move the conversion stuff that was in configs/kernel/Config.py into 2005-03-11 18:47:11 -05:00