summaryrefslogtreecommitdiff
path: root/src/dev/uart8250.cc
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-04-15 16:24:12 -0700
committerNathan Binkert <nate@binkert.org>2010-04-15 16:24:12 -0700
commite99828b06a1b694b7aca09682ae2b1be9089af88 (patch)
treee106d16b98b45695ffd993e2cd6684919723dc66 /src/dev/uart8250.cc
parentf7e6f19adabd0ce7e35cea8b5c3b070e2cd26c38 (diff)
downloadgem5-e99828b06a1b694b7aca09682ae2b1be9089af88.tar.xz
tick: rename Clock namespace to SimClock
Diffstat (limited to 'src/dev/uart8250.cc')
-rw-r--r--src/dev/uart8250.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/uart8250.cc b/src/dev/uart8250.cc
index f131ab69f..2bbcf2683 100644
--- a/src/dev/uart8250.cc
+++ b/src/dev/uart8250.cc
@@ -90,7 +90,7 @@ Uart8250::IntrEvent::process()
void
Uart8250::IntrEvent::scheduleIntr()
{
- static const Tick interval = 225 * Clock::Int::ns;
+ static const Tick interval = 225 * SimClock::Int::ns;
DPRINTF(Uart, "Scheduling IER interrupt for %#x, at cycle %lld\n", intrBit,
curTick + interval);
if (!scheduled())
@@ -217,7 +217,7 @@ Uart8250::write(PacketPtr pkt)
if (UART_IER_THRI & IER)
{
DPRINTF(Uart, "IER: IER_THRI set, scheduling TX intrrupt\n");
- if (curTick - lastTxInt > 225 * Clock::Int::ns) {
+ if (curTick - lastTxInt > 225 * SimClock::Int::ns) {
DPRINTF(Uart, "-- Interrupting Immediately... %d,%d\n",
curTick, lastTxInt);
txIntrEvent.process();