From 82a8230aa761e193a91ade0fa3c109a5c0f08aed Mon Sep 17 00:00:00 2001 From: Sudhanshu Jha Date: Mon, 27 Feb 2017 10:29:56 +0000 Subject: dev, kvm: Add a fast KVM-aware mode in DmaReadFifo Use a fast, functional, read operations keep the DMA FIFO full when running in KVM mode. Change-Id: I5b378c2fb6a1d3e687cef15e807e63a0a53a60e2 Signed-off-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/2226 Reviewed-by: Rahul Thakur Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/dev/dma_device.hh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/dev/dma_device.hh') diff --git a/src/dev/dma_device.hh b/src/dev/dma_device.hh index 4e66b3456..4a1946af5 100644 --- a/src/dev/dma_device.hh +++ b/src/dev/dma_device.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2013, 2015 ARM Limited + * Copyright (c) 2012-2013, 2015, 2017 ARM Limited * All rights reserved. * * The license below extends only to copyright in the software and shall @@ -494,9 +494,15 @@ class DmaReadFifo : public Drainable, public Serializable /** Handle pending requests that have been flagged as done. */ void handlePending(); - /** Try to issue new DMA requests */ + /** Try to issue new DMA requests or bypass DMA requests*/ void resumeFill(); + /** Try to issue new DMA requests during normal execution*/ + void resumeFillTiming(); + + /** Try to bypass DMA requests in KVM execution mode */ + void resumeFillFunctional(); + private: // Internal state Fifo buffer; -- cgit v1.2.3