intmessage.hh (8949:3fa1ee293096) | intmessage.hh (12749:223c83ed9979) |
---|---|
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; --- 65 unchanged lines hidden (view full) --- 74 } 75 } 76 77 static const Addr TriggerIntOffset = 0; 78 79 static inline PacketPtr 80 prepIntRequest(const uint8_t id, Addr offset, Addr size) 81 { | 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; --- 65 unchanged lines hidden (view full) --- 74 } 75 } 76 77 static const Addr TriggerIntOffset = 0; 78 79 static inline PacketPtr 80 prepIntRequest(const uint8_t id, Addr offset, Addr size) 81 { |
82 RequestPtr req = new Request(x86InterruptAddress(id, offset), 83 size, Request::UNCACHEABLE, 84 Request::intMasterId); | 82 RequestPtr req = std::make_shared<Request>( 83 x86InterruptAddress(id, offset), 84 size, Request::UNCACHEABLE, 85 Request::intMasterId); 86 |
85 PacketPtr pkt = new Packet(req, MemCmd::MessageReq); 86 pkt->allocate(); 87 return pkt; 88 } 89 90 template<class T> 91 PacketPtr 92 buildIntRequest(const uint8_t id, T payload, Addr offset, Addr size) --- 21 unchanged lines hidden --- | 87 PacketPtr pkt = new Packet(req, MemCmd::MessageReq); 88 pkt->allocate(); 89 return pkt; 90 } 91 92 template<class T> 93 PacketPtr 94 buildIntRequest(const uint8_t id, T payload, Addr offset, Addr size) --- 21 unchanged lines hidden --- |