summaryrefslogtreecommitdiff
path: root/src/arch/arm/linux/linux.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-28 21:07:16 -0700
committerGabe Black <gabeblack@google.com>2019-10-30 22:29:23 +0000
commit7adc90a2970dfdc54560305ddca46c90ce519016 (patch)
treefb03f7da1cc3cd5e44c9a631f3fd2da89842ae37 /src/arch/arm/linux/linux.hh
parentcbf20899528f523db38b78c32d27dcb8fc8485fd (diff)
downloadgem5-7adc90a2970dfdc54560305ddca46c90ce519016.tar.xz
dev: Make the virtio devices track endianness explicitly.
These classes now track what endianness they're supposed to use explicitly, initially set by the getGuestByteOrder accessor on the system object. In the future, if the endianness depends on the version of the VirtIO spec as the comment suggest, it will be easier to dynamically set the endianness in the various structures based on the version being used, Since there isn't anything special about the virt IO versions of these converters other than their types, and since the endianness conversion infrastructure can be taught how to convert new types, the code was switched over to using the standard htog and gtoh but with the explicit byte order provided. This also gets rid of the final use of TheISA in the dev directory. Change-Id: I9345e3295eb27fc5eb87e8ce0d8d424ad1e75d2d Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22273 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch/arm/linux/linux.hh')
0 files changed, 0 insertions, 0 deletions