kern: When dumping dmesg, detect the byte order dynamically.
authorGabe Black <gabeblack@google.com>
Tue, 29 Oct 2019 22:52:09 +0000 (15:52 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 30 Oct 2019 22:29:23 +0000 (22:29 +0000)
commit4444e88e5b4af1f49b501f13bd13133c6422374e
treefcf8a07f2cf4004f4d2b21dbff6465ef3f244f2b
parent75d496c6b2c65ada974be3f9445ae7fb94ccef10
kern: When dumping dmesg, detect the byte order dynamically.

The dmesg dumper has access to the system object and so has access to
the getGuestByteOrder accessor. Use that instead of TheISA to determine
the byte order.

Change-Id: I4df7b1bcd807aaced1d7dc8d2030123e2d4d1d2b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22365
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/kern/linux/helpers.cc