arch-power: Fix memory leaks from address translation gem5-experimental-rebase
authorSandipan Das <sandipan@linux.ibm.com>
Fri, 24 Apr 2020 06:14:33 +0000 (11:44 +0530)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 24 Jan 2021 04:25:28 +0000 (04:25 +0000)
commit64191ddc02754adf331582cc48a95b1d396b723f
tree16e19ca9dd64d76153c458c3d6ebcb6328e5d30c
parent91d1fced9f602e63e1fdc387309e481bf09963e5
arch-power: Fix memory leaks from address translation

While performing address translation using the radix tree
walk mechanism, the objects corresponding to the read and
write requests must be freed properly. These contain data
buffers which if not freed, will keep increasing memory
usage and cause the simulator to get OOM-killed quite
early on low-memory systems.

Change-Id: I0bc87bd8950e83829d68ba51e64d81eabf20fa6b
Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
src/arch/power/radixwalk.cc