arch-arm: Fix missing Request allocation
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 13 Jun 2018 08:33:39 +0000 (09:33 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 13 Jun 2018 09:30:17 +0000 (09:30 +0000)
This patch is fixing a missing allocation for a Request buffer
in the Stage2Translation class.

Change-Id: I9ce7b85d3527c5b3cc895eb83e9a39641793b0bd
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/11095
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/arch/arm/stage2_mmu.cc

index c6f3ba7c16240a16c22f14ca7f0d5641799abd18..f043db29eb1fd8fd646add878bf1a0189cf3c92f 100644 (file)
@@ -113,6 +113,7 @@ Stage2MMU::Stage2Translation::Stage2Translation(Stage2MMU &_parent,
     : data(_data), numBytes(0), event(_event), parent(_parent), oVAddr(_oVAddr),
     fault(NoFault)
 {
+    req = std::make_shared<Request>();
 }
 
 void