projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
838273a
)
With the new uart code 300 cycles isn't quite enough, 350 seems to
author
Ali Saidi
<saidi@eecs.umich.edu>
Tue, 29 Jun 2004 01:23:10 +0000
(21:23 -0400)
committer
Ali Saidi
<saidi@eecs.umich.edu>
Tue, 29 Jun 2004 01:23:10 +0000
(21:23 -0400)
work. When everything gets changed to seconds this should be updated.
--HG--
extra : convert_revision :
9f1064ff6fec5deceb591904f4571c9129ecc998
dev/uart.cc
patch
|
blob
|
history
diff --git
a/dev/uart.cc
b/dev/uart.cc
index 30dde198473b69284858b0c5f26834a9503fc474..7c3ce72abe62daa4295fd9316bc13877f1b93321 100644
(file)
--- 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 +
30
0);
+ reschedule(curTick +
(ticksPerSecond/2000) * 35
0);
}
Uart::Uart(const string &name, SimConsole *c, MemoryController *mmu, Addr a,