misc: Substitute pointer to Request with aliased RequestPtr
Every usage of Request* in the code has been replaced with the RequestPtr alias. This is a preparing patch for when RequestPtr will be the typdefed to a smart pointer to Request rather then a raw pointer to Request. Change-Id: I73cbaf2d96ea9313a590cdc731a25662950cd51a Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-on: https://gem5-review.googlesource.com/10995 Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
This commit is contained in:
@@ -423,7 +423,7 @@ LSQ::SplitDataRequest::makeFragmentRequests()
|
||||
}
|
||||
}
|
||||
|
||||
Request *fragment = new Request();
|
||||
RequestPtr fragment = new Request();
|
||||
|
||||
fragment->setContext(request.contextId());
|
||||
fragment->setVirt(0 /* asid */,
|
||||
@@ -452,7 +452,7 @@ LSQ::SplitDataRequest::makeFragmentPackets()
|
||||
for (unsigned int fragment_index = 0; fragment_index < numFragments;
|
||||
fragment_index++)
|
||||
{
|
||||
Request *fragment = fragmentRequests[fragment_index];
|
||||
RequestPtr fragment = fragmentRequests[fragment_index];
|
||||
|
||||
DPRINTFS(MinorMem, (&port), "Making packet %d for request: %s"
|
||||
" (%d, 0x%x)\n",
|
||||
|
||||
@@ -399,7 +399,7 @@ class LSQ : public Named
|
||||
|
||||
/** Fragment Requests corresponding to the address ranges of
|
||||
* each fragment */
|
||||
std::vector<Request *> fragmentRequests;
|
||||
std::vector<RequestPtr> fragmentRequests;
|
||||
|
||||
/** Packets matching fragmentRequests to issue fragments to memory */
|
||||
std::vector<Packet *> fragmentPackets;
|
||||
|
||||
Reference in New Issue
Block a user