dev: Add a VirtIO console device model
[gem5.git] / src / dev / Uart.py
index 9254dc695e3d40303a22275b48e29f0060b33470..c3bc9dd0f7ceadcf6bbbfe213d6814ecb1094e99 100644 (file)
@@ -33,7 +33,10 @@ from Device import BasicPioDevice
 class Uart(BasicPioDevice):
     type = 'Uart'
     abstract = True
+    cxx_header = "dev/uart.hh"
+    platform = Param.Platform(Parent.any, "Platform this device is part of.")
     terminal = Param.Terminal(Parent.any, "The terminal")
 
 class Uart8250(Uart):
     type = 'Uart8250'
+    cxx_header = "dev/uart8250.hh"