intmessage.hh (12749:223c83ed9979) | intmessage.hh (13229:b45254f2733a) |
---|---|
1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 80 unchanged lines hidden (view full) --- 89 return pkt; 90 } 91 92 template<class T> 93 PacketPtr 94 buildIntRequest(const uint8_t id, T payload, Addr offset, Addr size) 95 { 96 PacketPtr pkt = prepIntRequest(id, offset, size); | 1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 80 unchanged lines hidden (view full) --- 89 return pkt; 90 } 91 92 template<class T> 93 PacketPtr 94 buildIntRequest(const uint8_t id, T payload, Addr offset, Addr size) 95 { 96 PacketPtr pkt = prepIntRequest(id, offset, size); |
97 pkt->set | 97 pkt->setRaw<T>(payload); |
98 return pkt; 99 } 100 101 static inline PacketPtr 102 buildIntRequest(const uint8_t id, TriggerIntMessage payload) 103 { 104 return buildIntRequest(id, payload, TriggerIntOffset, 105 sizeof(TriggerIntMessage)); 106 } 107 108 static inline PacketPtr 109 buildIntResponse() 110 { 111 panic("buildIntResponse not implemented.\n"); 112 } 113} 114 115#endif | 98 return pkt; 99 } 100 101 static inline PacketPtr 102 buildIntRequest(const uint8_t id, TriggerIntMessage payload) 103 { 104 return buildIntRequest(id, payload, TriggerIntOffset, 105 sizeof(TriggerIntMessage)); 106 } 107 108 static inline PacketPtr 109 buildIntResponse() 110 { 111 panic("buildIntResponse not implemented.\n"); 112 } 113} 114 115#endif |