summaryrefslogtreecommitdiff
path: root/src/python/m5/objects/DiskImage.py
blob: d0ada7ee19bb7b3e4cb124a676bff1058349ef3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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")