X86: Add some missing default arguments.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 2 Feb 2009 06:40:51 +0000 (22:40 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 2 Feb 2009 06:40:51 +0000 (22:40 -0800)
src/dev/x86/I8042.py
src/dev/x86/I82094AA.py
src/dev/x86/I8259.py

index 1f6a48410359ee32f2da5affdd2b23c9817d36b7..31192adcda86e183760af25a2ac33029bb2e1fd5 100644 (file)
@@ -35,6 +35,8 @@ class I8042(BasicPioDevice):
     type = 'I8042'
     cxx_class = 'X86ISA::I8042'
     pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
+    # This isn't actually used for anything here.
+    pio_addr = 0x0
     data_port = Param.Addr('Data port address')
     command_port = Param.Addr('Command/status port address')
     mouse_int_pin = Param.X86IntSourcePin(X86IntSourcePin(),
index 5ca58614d31801a6c3e5c55d7900614a8f2cc31a..9d57beed14f4647d96a745048ec2403afc37125a 100644 (file)
@@ -37,7 +37,7 @@ class I82094AA(BasicPioDevice):
     pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
     pio_addr = Param.Addr("Device address")
     int_port = Port("Port for sending and receiving interrupt messages")
-    external_int_pic = Param.I8259("External PIC, if any")
+    external_int_pic = Param.I8259(NULL, "External PIC, if any")
 
     def pin(self, line):
         return X86IntSinkPin(device=self, number=line)
index e0128d0327a09071f5e6a6f53ef3469bffeb114f..0a516d30ab202adfa687f02bf4f0c16aa6dd5765 100644 (file)
@@ -44,7 +44,7 @@ class I8259(BasicPioDevice):
     output = Param.X86IntSourcePin(X86IntSourcePin(),
             'The pin this I8259 drives')
     mode = Param.X86I8259CascadeMode('How this I8259 is cascaded')
-    slave = Param.I8259('Slave I8259, if any')
+    slave = Param.I8259(NULL, 'Slave I8259, if any')
 
     def pin(self, line):
         return X86IntSinkPin(device=self, number=line)