mem-ruby: Cleanup replacement_data usage
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 1 Jan 2020 20:06:29 +0000 (21:06 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Sat, 25 Jul 2020 10:51:06 +0000 (10:51 +0000)
commitf54af2863ce83973cc950730dbdd8df6c5508178
treea0c47aea97af8c16952dcf9fa8b373520c46551b
parent33f36598256565b623f7c9ac1428fe39df6cd23b
mem-ruby: Cleanup replacement_data usage

The replacement_data can be assigned as soon as a block is allocated.
With this cleanup the lookup function can be used to avoid code
duplication.

Change-Id: I7561fddaa3ed348866699ecaf1e6aa477ba0bc9a
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23945
Reviewed-by: John Alsop <johnathan.alsop@amd.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/ruby/structures/CacheMemory.cc
src/mem/ruby/structures/CacheMemory.hh