fix SIGUSR1 and SIGUSR2 by clearing the variables after
authorNathan Binkert <binkertn@umich.edu>
Wed, 18 Apr 2007 15:04:46 +0000 (08:04 -0700)
committerNathan Binkert <binkertn@umich.edu>
Wed, 18 Apr 2007 15:04:46 +0000 (08:04 -0700)
they're used

--HG--
extra : convert_revision : ed5351f291d45d585bf811a062e162e16b86e886

src/sim/simulate.cc

index 55cbb50a94240aec3d7d3b6aef6e20d1ae7592f2..36bdff45e54884758814d4a14211b3806188445a 100644 (file)
@@ -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) {