mem-ruby: Fix const copy of addr range in AbstractController
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Sun, 13 Dec 2020 13:54:14 +0000 (10:54 -0300)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 14 Dec 2020 11:50:26 +0000 (11:50 +0000)
commit9c235d19b0eaea73f687ed1cbf63eeaee858f27f
tree4984d03da69b4ebd66d4480c0e32c26ea6745e58
parent09786817280b27158a00b661fb445c367e134c5c
mem-ruby: Fix const copy of addr range in AbstractController

Clang 10 throws the following error:
  loop variable 'addr_range' of type 'const AddrRange' creates a
  copy from type 'const AddrRange' [-Werror,-Wrange-loop-construct]

  note: use reference type 'const AddrRange &' to prevent copying

Issue introduced by c7fabb979c09864ab47ae848381d6797b45a4cc6.

Change-Id: I43e8d613eb5069d5ce9cb12ddec18cba0a3847f6
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38495
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/ruby/slicc_interface/AbstractController.cc