RubySlicc_Util.hh (11025:4872dbdea907) | RubySlicc_Util.hh (11208:fa3e56b6e0b6) |
---|---|
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; --- 24 unchanged lines hidden (view full) --- 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/packet.hh" 40#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; --- 24 unchanged lines hidden (view full) --- 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/packet.hh" 40#include "mem/ruby/common/Address.hh" |
41#include "mem/ruby/common/BoolVec.hh" |
|
41#include "mem/ruby/common/DataBlock.hh" 42#include "mem/ruby/common/TypeDefines.hh" 43 44inline Cycles zero_time() { return Cycles(0); } 45 46inline NodeID 47intToID(int nodenum) 48{ --- 71 unchanged lines hidden (view full) --- 120 for (unsigned i = 0; i < size_in_bytes; ++i) { 121 blk.setByte(i + startByte, data[i]); 122 } 123 return true; 124 } 125 return false; 126} 127 | 42#include "mem/ruby/common/DataBlock.hh" 43#include "mem/ruby/common/TypeDefines.hh" 44 45inline Cycles zero_time() { return Cycles(0); } 46 47inline NodeID 48intToID(int nodenum) 49{ --- 71 unchanged lines hidden (view full) --- 121 for (unsigned i = 0; i < size_in_bytes; ++i) { 122 blk.setByte(i + startByte, data[i]); 123 } 124 return true; 125 } 126 return false; 127} 128 |
129inline int 130countBoolVec(BoolVec bVec) 131{ 132 int count = 0; 133 for (const auto &it: bVec) { 134 if (it) { 135 count++; 136 } 137 } 138 return count; 139} 140 |
|
128#endif // __MEM_RUBY_SLICC_INTERFACE_RUBYSLICCUTIL_HH__ | 141#endif // __MEM_RUBY_SLICC_INTERFACE_RUBYSLICCUTIL_HH__ |