1a2,13
> * Copyright (c) 2017 ARM Limited
> * All rights reserved.
> *
> * The license below extends only to copyright in the software and shall
> * not be construed as granting a license to any other intellectual
> * property including but not limited to intellectual property relating
> * to a hardware implementation of the functionality of the software
> * licensed hereunder. You may use the software subject to the license
> * terms below provided that you ensure that this notice is replicated
> * unmodified and in its entirety in all distributions of the software,
> * modified or unmodified, in source code or in binary form.
> *
44a57
> #include <unordered_map>
46a60,62
> #include "base/addr_range.hh"
> #include "base/types.hh"
> #include "mem/packet.hh"
48a65
> #include "mem/ruby/common/MachineID.hh"
51d67
< #include "mem/packet.hh"
104a121,134
> /**
> * Map an address to the correct NodeID
> *
> * This function traverses the global address map to find the
> * NodeID that corresponds to the given address and the type of
> * the destination. For example for a request to a directory this
> * function will return the NodeID of the right directory.
> *
> * @param the destination address
> * @param the type of the destination
> * @return the NodeID of the destination
> */
> NodeID addressToNodeID(Addr addr, MachineType mtype);
>
139a170,176
>
> // Global address map
> struct AddrMapNode {
> NodeID id;
> AddrRangeList ranges;
> };
> std::unordered_multimap<MachineType, AddrMapNode> addrMap;