ISA: Make the decode function part of the ISA's decoder.
[gem5.git] / src / dev / uart.cc
index f769b720b23ee1e83d7ac911b1af6bda1c674e82..ab0ebde2cdb8926663d021d17d765e68847bedc8 100644 (file)
  * Implements a base class for UARTs
  */
 
-#include "dev/simconsole.hh"
-#include "dev/uart.hh"
 #include "dev/platform.hh"
-#include "sim/builder.hh"
+#include "dev/terminal.hh"
+#include "dev/uart.hh"
 
 using namespace std;
 
-Uart::Uart(Params *p)
-    : BasicPioDevice(p), platform(p->platform), cons(p->cons)
+Uart::Uart(const Params *p)
+    : BasicPioDevice(p), platform(p->platform), term(p->terminal)
 {
-
     status = 0;
 
     // set back pointers
-    cons->uart = this;
-    platform->uart = this;
+    term->uart = this;
 }
-
-DEFINE_SIM_OBJECT_CLASS_NAME("Uart", Uart)
-