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/slicc_interface/RubySlicc_ComponentMapping.hh" |
41#include "mem/packet.hh" |
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 |
57inline NodeID 58intToID(int nodenum) 59{ 60 NodeID id = nodenum; 61 return id; 62} 63 64inline int --- 125 unchanged lines hidden --- |