summaryrefslogtreecommitdiff
path: root/src/python/m5/objects/DiskImage.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/m5/objects/DiskImage.py')
-rw-r--r--src/python/m5/objects/DiskImage.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/python/m5/objects/DiskImage.py b/src/python/m5/objects/DiskImage.py
new file mode 100644
index 000000000..d0ada7ee1
--- /dev/null
+++ b/src/python/m5/objects/DiskImage.py
@@ -0,0 +1,16 @@
+from m5.SimObject import SimObject
+from m5.params import *
+class DiskImage(SimObject):
+ type = 'DiskImage'
+ abstract = True
+ image_file = Param.String("disk image file")
+ read_only = Param.Bool(False, "read only image")
+
+class RawDiskImage(DiskImage):
+ type = 'RawDiskImage'
+
+class CowDiskImage(DiskImage):
+ type = 'CowDiskImage'
+ child = Param.DiskImage(RawDiskImage(read_only=True),
+ "child image")
+ table_size = Param.Int(65536, "initial table size")