41#ifndef __MEM_RUBY_COMMON_MACHINEID_HH__
42#define __MEM_RUBY_COMMON_MACHINEID_HH__
48#include "mem/ruby/protocol/MachineType.hh"
60 :
type(mach_type),
num(node_id) { }
75 return csprintf(
"%s_%d", MachineType_to_string(machine.
type), machine.
num);
91::std::ostream&
operator<<(::std::ostream& out,
const MachineID& obj);
96 if ((obj.
type < MachineType_NUM) && (obj.
type >= MachineType_FIRST)) {
97 out << MachineType_to_string(obj.
type);
113 struct hash<
gem5::ruby::MachineID>
117 size_t hval = gem5::ruby::MachineType_base_level(
118 id.type) << 16 |
id.num;
std::string MachineIDToString(MachineID machine)
bool operator!=(const MachineID &obj1, const MachineID &obj2)
std::ostream & operator<<(std::ostream &os, const BoolVec &myvector)
bool operator==(const DataBlock &obj1, const DataBlock &obj2)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::string csprintf(const char *format, const Args &...args)
Overload hash function for BasicBlockRange type.
NodeID num
range: 0 ... number of this machine's components in system - 1
MachineType getType() const
MachineID(MachineType mach_type, NodeID node_id)
size_t operator()(const gem5::ruby::MachineID &id) const