RubySlicc_ComponentMapping.hh (6372:f1a41ea3bbab) | RubySlicc_ComponentMapping.hh (6467:5670eee2a866) |
---|---|
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 --- 71 unchanged lines hidden (view full) --- 80 81inline 82MachineID map_Address_to_DMA(const Address & addr) 83{ 84 MachineID dma = {MachineType_DMA, 0}; 85 return dma; 86} 87 | 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 --- 71 unchanged lines hidden (view full) --- 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 high_bit) 90{ 91 MachineID mach = {type, 0}; 92 mach.num = addr.bitSelect(low_bit, high_bit); 93 return mach; 94} 95 |
|
88extern inline NodeID machineIDToNodeID(MachineID machID) 89{ 90 return machID.num; 91} 92 93extern inline MachineType machineIDToMachineType(MachineID machID) 94{ 95 return machID.type; --- 31 unchanged lines hidden --- | 96extern inline NodeID machineIDToNodeID(MachineID machID) 97{ 98 return machID.num; 99} 100 101extern inline MachineType machineIDToMachineType(MachineID machID) 102{ 103 return machID.type; --- 31 unchanged lines hidden --- |