arch-power: Fix memory leaks from address translation gem5-experimental
authorSandipan Das <sandipan@linux.ibm.com>
Fri, 24 Apr 2020 06:14:33 +0000 (11:44 +0530)
committerSandipan Das <sandipan@linux.ibm.com>
Fri, 24 Apr 2020 06:31:22 +0000 (12:01 +0530)
commitcae53531103ebc5bccddf874db85f2659b64000a
tree70061760b965c64c1335791e243d64c1bc1ff885
parent7266f752eef3f22b4ddbcc7604d631d25f84db0e
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