projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ISA: Make the decode function part of the ISA's decoder.
[gem5.git]
/
src
/
dev
/
uart.cc
diff --git
a/src/dev/uart.cc
b/src/dev/uart.cc
index f769b720b23ee1e83d7ac911b1af6bda1c674e82..ab0ebde2cdb8926663d021d17d765e68847bedc8 100644
(file)
--- a/
src/dev/uart.cc
+++ b/
src/dev/uart.cc
@@
-32,23
+32,17
@@
* Implements a base class for UARTs
*/
* Implements a base class for UARTs
*/
-#include "dev/simconsole.hh"
-#include "dev/uart.hh"
#include "dev/platform.hh"
#include "dev/platform.hh"
-#include "sim/builder.hh"
+#include "dev/terminal.hh"
+#include "dev/uart.hh"
using namespace std;
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
status = 0;
// set back pointers
- cons->uart = this;
- platform->uart = this;
+ term->uart = this;
}
}
-
-DEFINE_SIM_OBJECT_CLASS_NAME("Uart", Uart)
-