More Python hacking to deal with config.py split
and resulting recursive import trickiness. --HG-- extra : convert_revision : 1ea93861eb8d260c9f3920dda0b8106db3e03705
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from m5.config import *
|
||||
from m5.params import *
|
||||
from m5.proxy import *
|
||||
from Device import BasicPioDevice
|
||||
|
||||
class AlphaConsole(BasicPioDevice):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from m5.config import *
|
||||
from m5.SimObject import SimObject
|
||||
from m5.params import *
|
||||
class AlphaTLB(SimObject):
|
||||
type = 'AlphaTLB'
|
||||
abstract = True
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from m5.config import *
|
||||
from m5.params import *
|
||||
from Device import BasicPioDevice
|
||||
|
||||
class BadDevice(BasicPioDevice):
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from m5.config import *
|
||||
from m5.params import *
|
||||
from MemObject import MemObject
|
||||
|
||||
class Prefetch(Enum): vals = ['none', 'tagged', 'stride', 'ghb']
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from m5.config import *
|
||||
from m5.params import *
|
||||
from MemObject import MemObject
|
||||
|
||||
class Bridge(MemObject):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from m5.config import *
|
||||
from m5.params import *
|
||||
from MemObject import MemObject
|
||||
|
||||
class Bus(MemObject):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from m5.config import *
|
||||
from m5.params import *
|
||||
from m5.proxy import *
|
||||
from MemObject import MemObject
|
||||
|
||||
class PioDevice(MemObject):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from m5.config import *
|
||||
from m5.SimObject import SimObject
|
||||
from m5.params import *
|
||||
class DiskImage(SimObject):
|
||||
type = 'DiskImage'
|
||||
abstract = True
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from m5.config import *
|
||||
from m5.SimObject import SimObject
|
||||
from m5.params import *
|
||||
|
||||
class FUPool(SimObject):
|
||||
type = 'FUPool'
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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']
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from m5.config import *
|
||||
from m5.SimObject import SimObject
|
||||
from m5.SimObject import SimObject
|
||||
|
||||
class MemObject(SimObject):
|
||||
type = 'MemObject'
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from m5.params import *
|
||||
from m5 import build_env
|
||||
from m5.config import *
|
||||
from BaseCPU import BaseCPU
|
||||
|
||||
class DerivOzoneCPU(BaseCPU):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from m5.config import *
|
||||
from m5.params import *
|
||||
from m5.proxy import *
|
||||
from MemObject import *
|
||||
|
||||
class PhysicalMemory(MemObject):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from m5.config import *
|
||||
from m5.SimObject import SimObject
|
||||
from m5.params import *
|
||||
class Repl(SimObject):
|
||||
type = 'Repl'
|
||||
abstract = True
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from m5.params import *
|
||||
from m5 import build_env
|
||||
from m5.config import *
|
||||
from BaseCPU import BaseCPU
|
||||
|
||||
class SimpleOzoneCPU(BaseCPU):
|
||||
|
||||
@@ -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']
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user