move the conversion stuff that was in configs/kernel/Config.py into
authorNathan Binkert <binkertn@umich.edu>
Fri, 11 Mar 2005 23:47:11 +0000 (18:47 -0500)
committerNathan Binkert <binkertn@umich.edu>
Fri, 11 Mar 2005 23:47:11 +0000 (18:47 -0500)
commitc393a51f4a00e88e7a72ad2c7bd56d19194f0b6a
tree9cd1da1f592488c5f5d2fdea95725775ee765b61
parente6902a907e333c09d64d520f4c978edf7e098f6a
move the conversion stuff that was in configs/kernel/Config.py into
the m5 package as convert.py
add a smartdict class which stores strings and can intelligently
interpret those string variables as several other types.
make the env dict use the smartdict class

python/m5/config.py:
    move a bunch of conversion functions into convert.py
    turn the env dict into a smartdict
    adapt the _CheckedInt stuff to deal with derived types
python/m5/objects/BaseCPU.mpy:
    env is now a smartdict and can properly convert to bool

--HG--
extra : convert_revision : 8abcd35a5ab14b82f280aea59020953869e33365
python/m5/config.py
python/m5/convert.py [new file with mode: 0644]
python/m5/objects/BaseCPU.mpy
python/m5/smartdict.py [new file with mode: 0644]