From: Erik Hallnor Date: Thu, 15 Jul 2004 01:34:51 +0000 (-0400) Subject: Fix serialization when a tx interrupt isn't scheduled X-Git-Tag: m5_1.0_tutorial~237 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6939573ce7061d042428287233502d8c0328c1c;p=gem5.git Fix serialization when a tx interrupt isn't scheduled dev/uart.cc: Fix serialization when a tx interrupt isn't scheduled. --HG-- extra : convert_revision : 3029e284cbba417e3f453d83fdf2ef307d684916 --- diff --git a/dev/uart.cc b/dev/uart.cc index 8ba59579d..fca856d5d 100644 --- a/dev/uart.cc +++ b/dev/uart.cc @@ -395,7 +395,7 @@ Uart::serialize(ostream &os) if (txIntrEvent.scheduled()) txintrwhen = txIntrEvent.when(); else - rxintrwhen = 0; + txintrwhen = 0; SERIALIZE_SCALAR(rxintrwhen); SERIALIZE_SCALAR(txintrwhen); #endif