From 4f8612e0cf105dc69229d5fce71b4747586e68fd Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 23 Jul 2004 00:15:52 -0400 Subject: [PATCH] a little bit more info when dumping the event queue. add a function that can be called from the debugger to dump the event queue --HG-- extra : convert_revision : 2a8bb9b948abf611e8dc8cefe208a33b7a3c2c90 --- sim/eventq.cc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/sim/eventq.cc b/sim/eventq.cc index 6b4ccc827..f975c5e97 100644 --- a/sim/eventq.cc +++ b/sim/eventq.cc @@ -208,6 +208,13 @@ EventQueue::dump() cprintf("============================================================\n"); } +extern "C" +void +dumpMainQueue() +{ + mainEventQueue.dump(); +} + const char * Event::description() @@ -235,16 +242,18 @@ Event::trace(const char *action) void Event::dump() { + cprintf("Event (%s)\n", description()); + cprintf("Flags: %#x\n", _flags); #if TRACING_ON - cprintf(" Created: %d\n", when_created); + cprintf("Created: %d\n", when_created); #endif if (scheduled()) { #if TRACING_ON - cprintf(" Scheduled at %d\n", when_scheduled); + cprintf("Scheduled at %d\n", when_scheduled); #endif - cprintf(" Scheduled for %d\n", when()); + cprintf("Scheduled for %d, priority %d\n", when(), _priority); } else { - cprintf(" Not Scheduled\n"); + cprintf("Not Scheduled\n"); } } -- 2.30.2