RubySlicc_Util.hh (10302:0e9e99e6369a) | RubySlicc_Util.hh (10348:c91b23c72d5e) |
---|---|
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; --- 26 unchanged lines hidden (view full) --- 35 36#include <cassert> 37 38#include "debug/RubySlicc.hh" 39#include "mem/ruby/common/Address.hh" 40#include "mem/ruby/common/DataBlock.hh" 41#include "mem/packet.hh" 42 | 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; --- 26 unchanged lines hidden (view full) --- 35 36#include <cassert> 37 38#include "debug/RubySlicc.hh" 39#include "mem/ruby/common/Address.hh" 40#include "mem/ruby/common/DataBlock.hh" 41#include "mem/packet.hh" 42 |
43inline int 44random(int n) 45{ 46 return random() % n; 47} 48 | |
49inline Cycles zero_time() { return Cycles(0); } 50 51inline NodeID 52intToID(int nodenum) 53{ 54 NodeID id = nodenum; 55 return id; 56} --- 100 unchanged lines hidden --- | 43inline Cycles zero_time() { return Cycles(0); } 44 45inline NodeID 46intToID(int nodenum) 47{ 48 NodeID id = nodenum; 49 return id; 50} --- 100 unchanged lines hidden --- |