mem-cache: Insert on block allocation
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 6 Jun 2018 12:52:42 +0000 (14:52 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Wed, 13 Jun 2018 07:58:00 +0000 (07:58 +0000)
commitf47e3289f94c2fd24e23566cd5dfcb20e293290e
tree3ba530f10075f7839a2438aea0ac0139ca5b8df3
parent285a919dc1067c32e5eac22aaa805f62beaac6c4
mem-cache: Insert on block allocation

When a block is being replaced in an allocation, if successfull,
the block will be inserted. Therefore we move the insertion
functionality to allocateBlock().

allocateBlock's signature has been modified to allow this
modification.

Change-Id: I60d17a83ff4f3021fdc976378868ccde6c7507bc
Reviewed-on: https://gem5-review.googlesource.com/10812
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/base.cc
src/mem/cache/base.hh