dev: Fix reset of virtio devices
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 14 Jan 2021 17:35:39 +0000 (17:35 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 27 Jan 2021 09:20:48 +0000 (09:20 +0000)
commit425c3c6247f03f4890465e346f6aed5cfbd32f23
treea601ce41d29b913c2ba8d36543268eaaf221f96e
parentfac8d53a24c33190fa00c0ac5d8d3b2f00f70bce
dev: Fix reset of virtio devices

The VirtualQueue reset was just resetting the queue address but
it was not touching other cached state and its associated
ring buffers (used and avail)

Change-Id: I55cc767d791825899d62c4cd88b84809527f3f22
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39701
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/virtio/base.cc
src/dev/virtio/base.hh