More Python hacking to deal with config.py split

and resulting recursive import trickiness.

--HG--
extra : convert_revision : 1ea93861eb8d260c9f3920dda0b8106db3e03705
This commit is contained in:
Steve Reinhardt
2006-09-04 17:14:07 -07:00
parent 1233dbb998
commit c39aea440c
35 changed files with 155 additions and 102 deletions

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.params import *
from m5.proxy import *
from Device import BasicPioDevice
class AlphaConsole(BasicPioDevice):

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
class AlphaTLB(SimObject):
type = 'AlphaTLB'
abstract = True

View File

@@ -1,4 +1,4 @@
from m5.config import *
from m5.params import *
from Device import BasicPioDevice
class BadDevice(BasicPioDevice):

View File

@@ -1,5 +1,7 @@
from m5.SimObject import SimObject
from m5.params import *
from m5.proxy import *
from m5 import build_env
from m5.config import *
from AlphaTLB import AlphaDTB, AlphaITB
from Bus import Bus

View File

@@ -1,4 +1,4 @@
from m5.config import *
from m5.params import *
from MemObject import MemObject
class Prefetch(Enum): vals = ['none', 'tagged', 'stride', 'ghb']

View File

@@ -1,4 +1,4 @@
from m5.config import *
from m5.params import *
from MemObject import MemObject
class Bridge(MemObject):

View File

@@ -1,4 +1,4 @@
from m5.config import *
from m5.params import *
from MemObject import MemObject
class Bus(MemObject):

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
class Coherence(Enum): vals = ['uni', 'msi', 'mesi', 'mosi', 'moesi']
class CoherenceProtocol(SimObject):

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.params import *
from m5.proxy import *
from MemObject import MemObject
class PioDevice(MemObject):

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
class DiskImage(SimObject):
type = 'DiskImage'
abstract = True

View File

@@ -1,5 +1,7 @@
from m5.SimObject import SimObject
from m5.params import *
from m5.proxy import *
from m5 import build_env
from m5.config import *
from Device import DmaDevice
from Pci import PciDevice, PciConfigData

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
class FUPool(SimObject):
type = 'FUPool'

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
class OpType(Enum):
vals = ['(null)', 'IntAlu', 'IntMult', 'IntDiv', 'FloatAdd',

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
from Pci import PciDevice, PciConfigData
class IdeID(Enum): vals = ['master', 'slave']

View File

@@ -1,4 +1,6 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
from m5.proxy import *
class IntrControl(SimObject):
type = 'IntrControl'
cpu = Param.BaseCPU(Parent.any, "the cpu")

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.SimObject import SimObject
class MemObject(SimObject):
type = 'MemObject'

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
class MemTest(SimObject):
type = 'MemTest'
cache = Param.BaseCache("L1 cache")

View File

@@ -1,5 +1,6 @@
from m5.params import *
from m5.proxy import *
from m5 import build_env
from m5.config import *
from BaseCPU import BaseCPU
from Checker import O3Checker

View File

@@ -1,5 +1,5 @@
from m5.params import *
from m5 import build_env
from m5.config import *
from BaseCPU import BaseCPU
class DerivOzoneCPU(BaseCPU):

View File

@@ -1,4 +1,6 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
from m5.proxy import *
from Device import BasicPioDevice, DmaDevice, PioDevice
class PciConfigData(SimObject):

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.params import *
from m5.proxy import *
from MemObject import *
class PhysicalMemory(MemObject):

View File

@@ -1,4 +1,6 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
from m5.proxy import *
class Platform(SimObject):
type = 'Platform'
abstract = True

View File

@@ -1,4 +1,6 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
from m5.proxy import *
class Process(SimObject):
type = 'Process'
abstract = True

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
class Repl(SimObject):
type = 'Repl'
abstract = True

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
from Serialize import Serialize
from Statistics import Statistics
from Trace import Trace

View File

@@ -1,4 +1,6 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
from m5.proxy import *
class ConsoleListener(SimObject):
type = 'ConsoleListener'
port = Param.TcpPort(3456, "listen port")

View File

@@ -1,4 +1,6 @@
from m5.config import *
from m5.SimObject import SimObject
from m5.params import *
from m5.proxy import *
class SimpleDisk(SimObject):
type = 'SimpleDisk'
disk = Param.DiskImage("Disk Image")

View File

@@ -1,5 +1,5 @@
from m5.params import *
from m5 import build_env
from m5.config import *
from BaseCPU import BaseCPU
class SimpleOzoneCPU(BaseCPU):

View File

@@ -1,5 +1,7 @@
from m5.SimObject import SimObject
from m5.params import *
from m5.proxy import *
from m5 import build_env
from m5.config import *
class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing']

View File

@@ -1,4 +1,5 @@
from m5.config import *
from m5.params import *
from m5.proxy import *
from Device import BasicPioDevice
from Platform import Platform
from AlphaConsole import AlphaConsole

View File

@@ -1,5 +1,6 @@
from m5.params import *
from m5.proxy import *
from m5 import build_env
from m5.config import *
from Device import BasicPioDevice
class Uart(BasicPioDevice):