This change only modifies the writeFunc since it's easy to test using the hello world test programs. Jira Issue: https://gem5.atlassian.net/browse/GEM5-187 Change-Id: Ia4a7bacdb9938d9fbe4093fc6958904d6c423360 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23192 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com>