base.cc (6221:58a3c04e6344) base.cc (6670:81e6aa93bc6a)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 137 unchanged lines hidden (view full) ---

146
147 // allocate & initialize shared downcounter: each event will
148 // decrement this when triggered; simulation will terminate
149 // when counter reaches 0
150 int *counter = new int;
151 *counter = numThreads;
152 for (ThreadID tid = 0; tid < numThreads; ++tid) {
153 Event *event = new CountedExitEvent(cause, *counter);
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 137 unchanged lines hidden (view full) ---

146
147 // allocate & initialize shared downcounter: each event will
148 // decrement this when triggered; simulation will terminate
149 // when counter reaches 0
150 int *counter = new int;
151 *counter = numThreads;
152 for (ThreadID tid = 0; tid < numThreads; ++tid) {
153 Event *event = new CountedExitEvent(cause, *counter);
154 comInstEventQueue[tid]->schedule(event, p->max_insts_any_thread);
154 comInstEventQueue[tid]->schedule(event, p->max_insts_all_threads);
155 }
156 }
157
158 // allocate per-thread load-based event queues
159 comLoadEventQueue = new EventQueue *[numThreads];
160 for (ThreadID tid = 0; tid < numThreads; ++tid)
161 comLoadEventQueue[tid] = new EventQueue("load-based event queue");
162

--- 288 unchanged lines hidden ---
155 }
156 }
157
158 // allocate per-thread load-based event queues
159 comLoadEventQueue = new EventQueue *[numThreads];
160 for (ThreadID tid = 0; tid < numThreads; ++tid)
161 comLoadEventQueue[tid] = new EventQueue("load-based event queue");
162

--- 288 unchanged lines hidden ---