systemc: Run delta notifications in reverse insertion order.
authorGabe Black <gabeblack@google.com>
Thu, 4 Oct 2018 22:58:55 +0000 (15:58 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:52:51 +0000 (00:52 +0000)
This is sort of pointless, except that it matches Accellera's behavior.

Change-Id: Ia63f2de998157aa68ce36fdc2ba39ca7a80fecbe
Reviewed-on: https://gem5-review.googlesource.com/c/13295
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/core/scheduler.cc

index 0071e2dd4274aed839167d8793d09a318eef5064..d4d70b256016e1949548fa1c543975fc9b89bf90 100644 (file)
@@ -330,7 +330,7 @@ Scheduler::runDelta()
 
     try {
         while (!deltas.empty())
-            deltas.front()->run();
+            deltas.back()->run();
     } catch (...) {
         throwToScMain();
     }