base: Add a type for keeping track of object file loaders.
authorGabe Black <gabeblack@google.com>
Fri, 3 May 2019 05:51:09 +0000 (22:51 -0700)
committerGabe Black <gabeblack@google.com>
Sat, 18 May 2019 10:20:39 +0000 (10:20 +0000)
commitc1b748d691fe407c7cd43330658fba83e3435247
tree1b14ed823f371e31aae73c92099752e4b7f4d159
parent972c38b1cc5f6f6c649a0e9923695447bc5d6255
base: Add a type for keeping track of object file loaders.

This avoids having a big pile of #if-s in sim/process.cc and allows
dynamically adding new types of object file loaders which might
recognize new arch/OS combinations.

Change-Id: Ie3b9c1aa2974d30a61afc4fcc529ffd6a74d43e0
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18583
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/loader/object_file.cc
src/base/loader/object_file.hh