dev: Add a VirtIO console device model
[gem5.git] / src / dev / Uart.py
index e32517a4c3a83b7c4381af05de3ce7bf2ec50a55..c3bc9dd0f7ceadcf6bbbfe213d6814ecb1094e99 100644 (file)
 
 from m5.params import *
 from m5.proxy import *
-from m5 import build_env
 from Device import BasicPioDevice
 
 class Uart(BasicPioDevice):
     type = 'Uart'
     abstract = True
-    sim_console = Param.SimConsole(Parent.any, "The console")
+    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'
-
-if build_env['ALPHA_TLASER']:
-    class Uart8530(Uart):
-        type = 'Uart8530'
-
+    cxx_header = "dev/uart8250.hh"