RubySlicc_Util.hh (9484:e96ff45795bc) RubySlicc_Util.hh (9499:b03b556a8fbb)
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;

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

32
33#ifndef __MEM_RUBY_SLICC_INTERFACE_RUBYSLICCUTIL_HH__
34#define __MEM_RUBY_SLICC_INTERFACE_RUBYSLICCUTIL_HH__
35
36#include <cassert>
37
38#include "debug/RubySlicc.hh"
39#include "mem/ruby/common/Address.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;

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

32
33#ifndef __MEM_RUBY_SLICC_INTERFACE_RUBYSLICCUTIL_HH__
34#define __MEM_RUBY_SLICC_INTERFACE_RUBYSLICCUTIL_HH__
35
36#include <cassert>
37
38#include "debug/RubySlicc.hh"
39#include "mem/ruby/common/Address.hh"
40#include "mem/ruby/common/Global.hh"
41#include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
40#include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
42#include "mem/ruby/system/System.hh"
41#include "mem/packet.hh"
43
44inline int
45random(int n)
46{
47 return random() % n;
48}
49
50inline Time
51zero_time()
52{
53 return 0;
54}
55
42
43inline int
44random(int n)
45{
46 return random() % n;
47}
48
49inline Time
50zero_time()
51{
52 return 0;
53}
54
55inline Cycles TimeToCycles(Time t) { return Cycles(t); }
56
56inline NodeID
57intToID(int nodenum)
58{
59 NodeID id = nodenum;
60 return id;
61}
62
63inline int

--- 125 unchanged lines hidden ---
57inline NodeID
58intToID(int nodenum)
59{
60 NodeID id = nodenum;
61 return id;
62}
63
64inline int

--- 125 unchanged lines hidden ---