Replace macros with inline functions. Change-Id: I26571959152aed5f62c543e62750e564fe27bf28 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45879 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>