addr_mapper.hh (9294:8fb03b13de02) | addr_mapper.hh (9542:683991c46ac8) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 73 unchanged lines hidden (view full) --- 82 virtual Addr remapAddr(Addr addr) const = 0; 83 84 class AddrMapperSenderState : public Packet::SenderState 85 { 86 87 public: 88 89 /** | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 73 unchanged lines hidden (view full) --- 82 virtual Addr remapAddr(Addr addr) const = 0; 83 84 class AddrMapperSenderState : public Packet::SenderState 85 { 86 87 public: 88 89 /** |
90 * Construct a new sender state and remember the original one 91 * so that we can implement a stack. | 90 * Construct a new sender state to remember the original address. |
92 * | 91 * |
93 * @param _origSenderState Sender state to remember | |
94 * @param _origAddr Address before remapping 95 */ | 92 * @param _origAddr Address before remapping 93 */ |
96 AddrMapperSenderState(SenderState* _origSenderState, 97 Addr _origAddr) 98 : origSenderState(_origSenderState), origAddr(_origAddr) | 94 AddrMapperSenderState(Addr _origAddr) : origAddr(_origAddr) |
99 { } 100 101 /** Destructor */ 102 ~AddrMapperSenderState() { } 103 | 95 { } 96 97 /** Destructor */ 98 ~AddrMapperSenderState() { } 99 |
104 /** Pointer to old sender state of packet */ 105 SenderState* origSenderState; 106 | |
107 /** The original address the packet was destined for */ 108 Addr origAddr; 109 110 }; 111 112 class MapperMasterPort : public MasterPort 113 { 114 --- 180 unchanged lines hidden --- | 100 /** The original address the packet was destined for */ 101 Addr origAddr; 102 103 }; 104 105 class MapperMasterPort : public MasterPort 106 { 107 --- 180 unchanged lines hidden --- |