Deleted Added
sdiff udiff text old ( 6468:26abdfe2d980 ) new ( 6785:bb675ba62c79 )
full compact
1
2/*
3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 47 unchanged lines hidden (view full) ---

56#endif
57
58#ifdef MACHINETYPE_L3Cache
59#define MACHINETYPE_L3CACHE_ENUM MachineType_L3Cache
60#else
61#define MACHINETYPE_L3CACHE_ENUM MachineType_NUM
62#endif
63
64// used to determine the home directory
65// returns a value between 0 and total_directories_within_the_system
66inline
67NodeID map_Address_to_DirectoryNode(const Address& addr)
68{
69 return DirectoryMemory::mapAddressToDirectoryVersion(addr);
70}
71

--- 4 unchanged lines hidden (view full) ---

76{
77 MachineID mach = {MachineType_Directory, map_Address_to_DirectoryNode(addr)};
78 return mach;
79}
80
81inline
82MachineID map_Address_to_DMA(const Address & addr)
83{
84 MachineID dma = {MachineType_DMA, 0};
85 return dma;
86}
87
88inline
89MachineID mapAddressToRange(const Address & addr, MachineType type, int low_bit, int num_bits)
90{
91 MachineID mach = {type, 0};
92 if (num_bits == 0)

--- 44 unchanged lines hidden ---