Message.hh (8608:02d7ac5fb855) | Message.hh (9171:ae88ecf37145) |
---|---|
1/* 2 * Copyright (c) 1999-2008 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; --- 20 unchanged lines hidden (view full) --- 29#ifndef __MEM_RUBY_SLICC_INTERFACE_MESSAGE_HH__ 30#define __MEM_RUBY_SLICC_INTERFACE_MESSAGE_HH__ 31 32#include <iostream> 33 34#include "base/refcnt.hh" 35#include "mem/ruby/common/Global.hh" 36#include "mem/ruby/common/TypeDefines.hh" | 1/* 2 * Copyright (c) 1999-2008 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; --- 20 unchanged lines hidden (view full) --- 29#ifndef __MEM_RUBY_SLICC_INTERFACE_MESSAGE_HH__ 30#define __MEM_RUBY_SLICC_INTERFACE_MESSAGE_HH__ 31 32#include <iostream> 33 34#include "base/refcnt.hh" 35#include "mem/ruby/common/Global.hh" 36#include "mem/ruby/common/TypeDefines.hh" |
37#include "mem/ruby/eventqueue/RubyEventQueue.hh" | 37#include "mem/ruby/system/System.hh" |
38 39class Message; 40typedef RefCountingPtr<Message> MsgPtr; 41 42class Message : public RefCounted 43{ 44 public: 45 Message() | 38 39class Message; 40typedef RefCountingPtr<Message> MsgPtr; 41 42class Message : public RefCounted 43{ 44 public: 45 Message() |
46 : m_time(g_eventQueue_ptr->getTime()), 47 m_LastEnqueueTime(g_eventQueue_ptr->getTime()), | 46 : m_time(g_system_ptr->getTime()), 47 m_LastEnqueueTime(g_system_ptr->getTime()), |
48 m_DelayedCycles(0) 49 { } 50 51 Message(const Message &other) 52 : m_time(other.m_time), 53 m_LastEnqueueTime(other.m_LastEnqueueTime), 54 m_DelayedCycles(other.m_DelayedCycles) 55 { } --- 33 unchanged lines hidden --- | 48 m_DelayedCycles(0) 49 { } 50 51 Message(const Message &other) 52 : m_time(other.m_time), 53 m_LastEnqueueTime(other.m_LastEnqueueTime), 54 m_DelayedCycles(other.m_DelayedCycles) 55 { } --- 33 unchanged lines hidden --- |