From b46730c7ec2e3bd9f110002197c89269d83252f7 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sat, 4 Jun 2005 14:19:05 -0400 Subject: BaseSystem -> System Make System an object that can be instantiated. For operating systems that don't need any OS specific hacks. python/m5/objects/AlphaConsole.py: python/m5/objects/BaseCPU.py: python/m5/objects/Tsunami.py: BaseSystem -> System --HG-- rename : python/m5/objects/BaseSystem.py => python/m5/objects/System.py extra : convert_revision : e5d12db02abef1b0eda720b50dd2c09cb1ac5232 --- python/m5/objects/AlphaConsole.py | 2 +- python/m5/objects/BaseCPU.py | 2 +- python/m5/objects/BaseSystem.py | 18 ------------------ python/m5/objects/System.py | 17 +++++++++++++++++ python/m5/objects/Tsunami.py | 2 +- 5 files changed, 20 insertions(+), 21 deletions(-) delete mode 100644 python/m5/objects/BaseSystem.py create mode 100644 python/m5/objects/System.py (limited to 'python/m5') diff --git a/python/m5/objects/AlphaConsole.py b/python/m5/objects/AlphaConsole.py index 9fe31b009..32a137bec 100644 --- a/python/m5/objects/AlphaConsole.py +++ b/python/m5/objects/AlphaConsole.py @@ -7,4 +7,4 @@ class AlphaConsole(PioDevice): disk = Param.SimpleDisk("Simple Disk") num_cpus = Param.Int(1, "Number of CPUs") sim_console = Param.SimConsole(Parent.any, "The Simulator Console") - system = Param.BaseSystem(Parent.any, "system object") + system = Param.System(Parent.any, "system object") diff --git a/python/m5/objects/BaseCPU.py b/python/m5/objects/BaseCPU.py index 0dc436434..452b97c84 100644 --- a/python/m5/objects/BaseCPU.py +++ b/python/m5/objects/BaseCPU.py @@ -9,7 +9,7 @@ class BaseCPU(SimObject): dtb = Param.AlphaDTB("Data TLB") itb = Param.AlphaITB("Instruction TLB") mem = Param.FunctionalMemory("memory") - system = Param.BaseSystem(Parent.any, "system object") + system = Param.System(Parent.any, "system object") else: workload = VectorParam.Process("processes to run") diff --git a/python/m5/objects/BaseSystem.py b/python/m5/objects/BaseSystem.py deleted file mode 100644 index 457eadb36..000000000 --- a/python/m5/objects/BaseSystem.py +++ /dev/null @@ -1,18 +0,0 @@ -from m5 import * -class BaseSystem(SimObject): - type = 'BaseSystem' - abstract = True - boot_cpu_frequency = Param.Frequency(Self.cpu[0].clock.frequency, - "boot processor frequency") - memctrl = Param.MemoryController(Parent.any, "memory controller") - physmem = Param.PhysicalMemory(Parent.any, "phsyical memory") - kernel = Param.String("file that contains the kernel code") - console = Param.String("file that contains the console code") - pal = Param.String("file that contains palcode") - readfile = Param.String("", "file to read startup script from") - init_param = Param.UInt64(0, "numerical value to pass into simulator") - boot_osflags = Param.String("a", "boot flags to pass to the kernel") - system_type = Param.UInt64("Type of system we are emulating") - system_rev = Param.UInt64("Revision of system we are emulating") - bin = Param.Bool(False, "is this system binned") - binned_fns = VectorParam.String([], "functions broken down and binned") diff --git a/python/m5/objects/System.py b/python/m5/objects/System.py new file mode 100644 index 000000000..c247983c5 --- /dev/null +++ b/python/m5/objects/System.py @@ -0,0 +1,17 @@ +from m5 import * +class System(SimObject): + type = 'BaseSystem' + boot_cpu_frequency = Param.Frequency(Self.cpu[0].clock.frequency, + "boot processor frequency") + memctrl = Param.MemoryController(Parent.any, "memory controller") + physmem = Param.PhysicalMemory(Parent.any, "phsyical memory") + kernel = Param.String("file that contains the kernel code") + console = Param.String("file that contains the console code") + pal = Param.String("file that contains palcode") + readfile = Param.String("", "file to read startup script from") + init_param = Param.UInt64(0, "numerical value to pass into simulator") + boot_osflags = Param.String("a", "boot flags to pass to the kernel") + system_type = Param.UInt64("Type of system we are emulating") + system_rev = Param.UInt64("Revision of system we are emulating") + bin = Param.Bool(False, "is this system binned") + binned_fns = VectorParam.String([], "functions broken down and binned") diff --git a/python/m5/objects/Tsunami.py b/python/m5/objects/Tsunami.py index fa3c18127..c8fd94e2c 100644 --- a/python/m5/objects/Tsunami.py +++ b/python/m5/objects/Tsunami.py @@ -5,7 +5,7 @@ from Platform import Platform class Tsunami(Platform): type = 'Tsunami' pciconfig = Param.PciConfigAll("PCI configuration") - system = Param.BaseSystem(Parent.any, "system") + system = Param.System(Parent.any, "system") class TsunamiCChip(FooPioDevice): type = 'TsunamiCChip' -- cgit v1.2.3