diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2004-06-28 21:23:10 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2004-06-28 21:23:10 -0400 |
commit | 38fe4d9a86666cd82911ea8f5b5d047c610de731 (patch) | |
tree | 8b6c40ecd33131d6cd277ccdc9527bf412fa681e | |
parent | 838273a196c66f3c6ee834ae865db14f313ef1bc (diff) | |
download | gem5-38fe4d9a86666cd82911ea8f5b5d047c610de731.tar.xz |
With the new uart code 300 cycles isn't quite enough, 350 seems to
work. When everything gets changed to seconds this should be updated.
--HG--
extra : convert_revision : 9f1064ff6fec5deceb591904f4571c9129ecc998
-rw-r--r-- | dev/uart.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev/uart.cc b/dev/uart.cc index 30dde1984..7c3ce72ab 100644 --- a/dev/uart.cc +++ b/dev/uart.cc @@ -78,9 +78,11 @@ Uart::IntrEvent::scheduleIntr() { DPRINTF(Uart, "Scheduling IER interrupt\n"); if (!scheduled()) - schedule(curTick + 300); + /* @todo Make this cleaner, will be much easier with + * nanosecond time everywhere. Hint hint Nate. */ + schedule(curTick + (ticksPerSecond/2000) * 350); else - reschedule(curTick + 300); + reschedule(curTick + (ticksPerSecond/2000) * 350); } Uart::Uart(const string &name, SimConsole *c, MemoryController *mmu, Addr a, |