From: Nathan Binkert Date: Wed, 18 Apr 2007 15:04:46 +0000 (-0700) Subject: fix SIGUSR1 and SIGUSR2 by clearing the variables after X-Git-Tag: m5_2.0_beta3~30^2~7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d92fff858bdded7dbfa475837e91ada109b29f2c;p=gem5.git fix SIGUSR1 and SIGUSR2 by clearing the variables after they're used --HG-- extra : convert_revision : ed5351f291d45d585bf811a062e162e16b86e886 --- diff --git a/src/sim/simulate.cc b/src/sim/simulate.cc index 55cbb50a9..36bdff45e 100644 --- a/src/sim/simulate.cc +++ b/src/sim/simulate.cc @@ -92,10 +92,9 @@ simulate(Tick num_cycles) if (async_event) { async_event = false; if (async_statdump || async_statreset) { + Stats::StatEvent(async_statdump, async_statreset); async_statdump = false; async_statreset = false; - - Stats::StatEvent(async_statdump, async_statreset); } if (async_exit) {