gpu-compute,misc: Removed unused 'vaddr' capture
authorBobby R. Bruce <bbruce@ucdavis.edu>
Wed, 27 May 2020 10:36:31 +0000 (03:36 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Thu, 28 May 2020 04:48:54 +0000 (04:48 +0000)
Clang compilers return a `error: lambda capture 'vaddr' is not used`
error when compiling HSAIL_X86/gem5.opt. This unused lambda capture has
therefore been removed.

Change-Id: I2a7c58174a9ef83435099ab4daf84c762f017dd4
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29533
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>

src/gpu-compute/gpu_tlb.cc

index 2ae40dadf23c70dfc6a7105313a257a01ac33cb7..37a8b03a28c5682cc2268eef3ba013fa90bb8969 100644 (file)
@@ -314,7 +314,7 @@ namespace X86ISA
                 return std::make_shared<GeneralProtection>(0);
 
             req->setLocalAccessor(
-                [read,regNum,vaddr](ThreadContext *tc, PacketPtr pkt)
+                [read,regNum](ThreadContext *tc, PacketPtr pkt)
                 {
                     return localMiscRegAccess(read, regNum, tc, pkt);
                 }