from caches import *
import sys
-class MySystem(LinuxX86System):
+class MySystem(System):
def __init__(self, kernel, disk, cpu_type, num_cpus):
super(MySystem, self).__init__()
+ self.workload = X86FsLinux()
self._host_parallel = cpu_type == "kvm"
# Set up the clock domain and the voltage domain
self.setDiskImages(disk, disk)
# Change this path to point to the kernel you want to use
- self.kernel = kernel
+ self.workload.object_file = kernel
# Options specified on the kernel command line
boot_options = ['earlyprintk=ttyS0', 'console=ttyS0', 'lpj=7999923',
'root=/dev/hda1']
- self.boot_osflags = ' '.join(boot_options)
+ self.workload.command_line = ' '.join(boot_options)
# Create the CPUs for our system.
self.createCPU(cpu_type, num_cpus)
###############################################
# Add in a Bios information structure.
- self.smbios_table.structures = [X86SMBiosBiosInformation()]
+ self.workload.smbios_table.structures = [X86SMBiosBiosInformation()]
# Set up the Intel MP table
base_entries = []
assignISAInt(1, 1)
for i in range(3, 15):
assignISAInt(i, i)
- self.intel_mp_table.base_entries = base_entries
- self.intel_mp_table.ext_entries = ext_entries
+ self.workload.intel_mp_table.base_entries = base_entries
+ self.workload.intel_mp_table.ext_entries = ext_entries
entries = \
[
entries.append(X86E820Entry(addr = 0xFFFF0000, size = '64kB',
range_type=2))
- self.e820_table.entries = entries
+ self.workload.e820_table.entries = entries
class CowDisk(IdeDisk):
def __init__(self, filename):