eventq.cc (11072:6a447a3138ef) eventq.cc (11168:f98eb2da15a4)
1/*
2 * Copyright (c) 2000-2005 The Regents of The University of Michigan
3 * Copyright (c) 2008 The Hewlett-Packard Development Company
4 * Copyright (c) 2013 Advanced Micro Devices, Inc.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

30 * Authors: Steve Reinhardt
31 * Nathan Binkert
32 * Steve Raasch
33 */
34
35#include <cassert>
36#include <iostream>
37#include <string>
1/*
2 * Copyright (c) 2000-2005 The Regents of The University of Michigan
3 * Copyright (c) 2008 The Hewlett-Packard Development Company
4 * Copyright (c) 2013 Advanced Micro Devices, Inc.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

30 * Authors: Steve Reinhardt
31 * Nathan Binkert
32 * Steve Raasch
33 */
34
35#include <cassert>
36#include <iostream>
37#include <string>
38#include <unordered_map>
38#include <vector>
39
39#include <vector>
40
40#include "base/hashmap.hh"
41#include "base/misc.hh"
42#include "base/trace.hh"
43#include "cpu/smt.hh"
44#include "debug/Checkpoint.hh"
45#include "sim/core.hh"
46#include "sim/eventq_impl.hh"
47
48using namespace std;

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

314 }
315
316 cprintf("============================================================\n");
317}
318
319bool
320EventQueue::debugVerify() const
321{
41#include "base/misc.hh"
42#include "base/trace.hh"
43#include "cpu/smt.hh"
44#include "debug/Checkpoint.hh"
45#include "sim/core.hh"
46#include "sim/eventq_impl.hh"
47
48using namespace std;

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

314 }
315
316 cprintf("============================================================\n");
317}
318
319bool
320EventQueue::debugVerify() const
321{
322 m5::hash_map<long, bool> map;
322 std::unordered_map<long, bool> map;
323
324 Tick time = 0;
325 short priority = 0;
326
327 Event *nextBin = head;
328 while (nextBin) {
329 Event *nextInBin = nextBin;
330 while (nextInBin) {

--- 112 unchanged lines hidden ---
323
324 Tick time = 0;
325 short priority = 0;
326
327 Event *nextBin = head;
328 while (nextBin) {
329 Event *nextInBin = nextBin;
330 while (nextInBin) {

--- 112 unchanged lines hidden ---