core.hh (9356:b279bad40aa3) core.hh (9983:2cce74fe359e)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * Copyright (c) 2013 Mark D. Hill and David A. Wood
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;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the

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

37 */
38
39#include <string>
40
41#include "base/types.hh"
42#include "sim/eventq.hh"
43
44/// The universal simulation clock.
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
9 * met: redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer;
11 * redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the

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

39 */
40
41#include <string>
42
43#include "base/types.hh"
44#include "sim/eventq.hh"
45
46/// The universal simulation clock.
45inline Tick curTick() { return mainEventQueue.getCurTick(); }
47inline Tick curTick() { return _curEventQueue->getCurTick(); }
46
47const Tick retryTime = 1000;
48
49/// These are variables that are set based on the simulator frequency
50///@{
51namespace SimClock {
52extern Tick Frequency; ///< The number of ticks that equal one second
53

--- 47 unchanged lines hidden ---
48
49const Tick retryTime = 1000;
50
51/// These are variables that are set based on the simulator frequency
52///@{
53namespace SimClock {
54extern Tick Frequency; ///< The number of ticks that equal one second
55

--- 47 unchanged lines hidden ---