dev: Use the new ByteOrder param type in VirtIO devices
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 24 Aug 2020 17:00:57 +0000 (18:00 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 10 Sep 2020 14:27:17 +0000 (14:27 +0000)
commitf2bda57a96124890f14172a1b41fe74a2d5c6914
treefc02392cb21861c45efa8c9c0cda514bb0d19535
parent492585555776bb6f51bb623c34218b7c17cdb2a4
dev: Use the new ByteOrder param type in VirtIO devices

VirtIO devices currently request their endianness from the System
object. Instead of explicitly querying the system for its endianness,
expose the device's endianness as a param. This param defaults to the
endianness of a parent object using the Parent proxy (in practice the
system).

Change-Id: If4f84ff61f4d064bdd015a881790f5af03de6535
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33296
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
src/dev/virtio/VirtIO.py
src/dev/virtio/base.cc