RubySlicc_Util.hh (6145:15cca6ab723a) RubySlicc_Util.hh (6154:6bb54dcb940e)
1
2/*
3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

34 *
35 * $Id$
36 *
37 */
38
39#ifndef SLICC_UTIL_H
40#define SLICC_UTIL_H
41
1
2/*
3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

34 *
35 * $Id$
36 *
37 */
38
39#ifndef SLICC_UTIL_H
40#define SLICC_UTIL_H
41
42#include "Global.hh"
43#include "Address.hh"
44#include "NodeID.hh"
45#include "MachineID.hh"
46#include "RubyConfig.hh"
47#include "CacheMsg.hh"
48#include "GenericRequestType.hh"
49#include "CacheRequestType.hh"
50#include "AccessType.hh"
51#include "MachineType.hh"
52#include "Directory_State.hh"
53#include "L1Cache_State.hh"
54#include "MessageSizeType.hh"
55#include "Network.hh"
56#include "PrefetchBit.hh"
42#include "mem/ruby/common/Global.hh"
43#include "mem/ruby/common/Address.hh"
44#include "mem/ruby/system/NodeID.hh"
45#include "mem/ruby/system/MachineID.hh"
46#include "mem/ruby/config/RubyConfig.hh"
47#include "mem/protocol/CacheMsg.hh"
48#include "mem/protocol/GenericRequestType.hh"
49#include "mem/protocol/CacheRequestType.hh"
50#include "mem/protocol/AccessType.hh"
51#include "mem/protocol/MachineType.hh"
52#include "mem/protocol/Directory_State.hh"
53#include "mem/protocol/L1Cache_State.hh"
54#include "mem/protocol/MessageSizeType.hh"
55#include "mem/ruby/network/Network.hh"
56#include "mem/protocol/PrefetchBit.hh"
57
57
58#include "RubySlicc_ComponentMapping.hh"
58#include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
59
60class Set;
61class NetDest;
62
63extern inline int random(int n)
64{
65 return random() % n;
66}

--- 153 unchanged lines hidden ---
59
60class Set;
61class NetDest;
62
63extern inline int random(int n)
64{
65 return random() % n;
66}

--- 153 unchanged lines hidden ---