diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/tlm/src/sc_master_port.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/tlm/src/sc_master_port.cc b/util/tlm/src/sc_master_port.cc index 630243359..ab2bc4aba 100644 --- a/util/tlm/src/sc_master_port.cc +++ b/util/tlm/src/sc_master_port.cc @@ -47,8 +47,9 @@ PacketPtr SCMasterPort::generatePacket(tlm::tlm_generic_payload& trans) { Request::Flags flags; - auto req = new Request(trans.get_address(), trans.get_data_length(), flags, - owner.masterId); + auto req = std::make_shared<Request>( + trans.get_address(), trans.get_data_length(), flags, + owner.masterId); MemCmd cmd; |