From c5607563fbcc48d7f84ef41057947a18ebcbdeaf Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Thu, 16 Aug 2018 20:55:01 -0400 Subject: [PATCH] hsail-x86: fix addr_range_map error 683f411dca introduced changes to the addr_range_map's "find" method. Nikos replaced the relevant code with a new "contains" method. Propagate the changes to the gpu-compute code. Change-Id: I8cfe3b15cbfb476685b0ed5ba423ea5a8f1000d8 Reviewed-on: https://gem5-review.googlesource.com/12107 Reviewed-by: Jason Lowe-Power Reviewed-by: Anthony Gutierrez Maintainer: Anthony Gutierrez --- src/gpu-compute/hsail_code.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu-compute/hsail_code.cc b/src/gpu-compute/hsail_code.cc index 99f4b3896..a5b47b1b8 100644 --- a/src/gpu-compute/hsail_code.cc +++ b/src/gpu-compute/hsail_code.cc @@ -333,7 +333,7 @@ StorageSpace::findSymbol(uint64_t addr) { assert(elements_by_addr.size() > 0); - auto se = elements_by_addr.find(addr); + auto se = elements_by_addr.contains(addr); if (se == elements_by_addr.end()) { return nullptr; -- 2.30.2