dev: Fix the SPARC and X86 platform devices.
authorGabe Black <gabeblack@google.com>
Fri, 17 Nov 2017 23:24:28 +0000 (15:24 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 20 Nov 2017 00:15:28 +0000 (00:15 +0000)
A recent serial device refactoring changed the name of the parameter
that the terminal device gets attached to on the UART. The x86 and
SPARC platform devices didn't get updated though, and were still using
the old name. This change updates those objects.

Reported-by: Kanad Basu <kanad.kut@gmail.com>
Change-Id: I0824a9df8639062d8561420ea9ffea26b8b7e2e9
Reviewed-on: https://gem5-review.googlesource.com/5781
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>

src/dev/sparc/T1000.py
src/dev/x86/Pc.py

index 511f54b2c29af4ae1e6e226cb5d59aeb481e262d..99f08345051cae507acf2b263c5d2c40783dee08 100644 (file)
@@ -121,8 +121,8 @@ class T1000(Platform):
     # earlier, since the bus object itself is typically defined at the
     # System level.
     def attachIO(self, bus):
-        self.hvuart.terminal = self.hterm
-        self.puart0.terminal = self.pterm
+        self.hvuart.device = self.hterm
+        self.puart0.device = self.pterm
         self.fake_clk.pio = bus.master
         self.fake_membnks.pio = bus.master
         self.fake_l2_1.pio = bus.master
index 3100f59b7dd3e0ca0e87c0fa81844bff214b4a41..4d20214adfcac10938e3424a1967a42b6cabf30a 100644 (file)
@@ -65,7 +65,7 @@ class Pc(Platform):
     # Serial port and terminal
     com_1 = Uart8250()
     com_1.pio_addr = x86IOAddress(0x3f8)
-    com_1.terminal = Terminal()
+    com_1.device = Terminal()
 
     # Devices to catch access to non-existant serial ports.
     fake_com_2 = IsaFake(pio_addr=x86IOAddress(0x2f8), pio_size=8)