sim: Add pool specific allocators to SE mode

The System object supports multiple memory pools but there is currently
no way to specify which pool to allocate from in SE mode.  This patch
adds a optional poolID argument to the allocation functions.

Change-Id: I1c732f28905f3b3875adee5f2b0d9abb39a6c5d1
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/42215
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Michael LeBeane
2018-10-23 17:10:53 -04:00
committed by Alex Dutu
parent 3c3c2c3076
commit e4537dfbba
5 changed files with 234 additions and 27 deletions

View File

@@ -84,6 +84,7 @@ Source('power_state.cc')
Source('power_domain.cc')
Source('stats.cc')
Source('workload.cc')
Source('mem_pool.cc')
GTest('byteswap.test', 'byteswap.test.cc', '../base/types.cc')
GTest('guest_abi.test', 'guest_abi.test.cc')