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
This commit is contained in:
Ali Saidi 2004-06-28 21:23:10 -04:00
parent 838273a196
commit 38fe4d9a86

View file

@ -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,