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; --- 21 unchanged lines hidden (view full) --- 30#define __MEM_RUBY_STRUCTURES_DIRECTORYMEMORY_HH__ 31 32#include <iostream> 33#include <string> 34 35#include "mem/protocol/DirectoryRequestType.hh" 36#include "mem/ruby/common/Address.hh" 37#include "mem/ruby/slicc_interface/AbstractEntry.hh" |
38#include "params/RubyDirectoryMemory.hh" 39#include "sim/sim_object.hh" 40 41class DirectoryMemory : public SimObject 42{ 43 public: 44 typedef RubyDirectoryMemoryParams Params; 45 DirectoryMemory(const Params *p); --- 28 unchanged lines hidden (view full) --- 74 uint64 m_size_bits; 75 uint64 m_num_entries; 76 int m_version; 77 78 static int m_num_directories; 79 static int m_num_directories_bits; 80 static uint64_t m_total_size_bytes; 81 static int m_numa_high_bit; |
82}; 83 84inline std::ostream& 85operator<<(std::ostream& out, const DirectoryMemory& obj) 86{ 87 obj.print(out); 88 out << std::flush; 89 return out; 90} 91 92#endif // __MEM_RUBY_STRUCTURES_DIRECTORYMEMORY_HH__ |