summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas@sandberg.pp.se>2013-05-02 12:01:50 +0200
committerAndreas Sandberg <andreas@sandberg.pp.se>2013-05-02 12:01:50 +0200
commit41156c8196589dfca96a7370a7719a6c5bc9982c (patch)
treea345e8c495c0bb5705ee8eeae8a7a6b4765042f2 /src/cpu
parent12d7498ad5da51062d9a93afe7fcf5f7a89f8f2a (diff)
downloadgem5-41156c8196589dfca96a7370a7719a6c5bc9982c.tar.xz
kvm: Make MMIO requests uncacheable
Device accesses are normally uncacheable. This change probably doesn't make any difference since we normally disable caching when KVM is active. However, there might be devices that check this, so we'd better enable this flag to be safe.
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/kvm/base.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cpu/kvm/base.cc b/src/cpu/kvm/base.cc
index 2d993cf35..59553b42c 100644
--- a/src/cpu/kvm/base.cc
+++ b/src/cpu/kvm/base.cc
@@ -772,9 +772,7 @@ BaseKvmCPU::handleKvmExitFailEntry()
Tick
BaseKvmCPU::doMMIOAccess(Addr paddr, void *data, int size, bool write)
{
- mmio_req.setPhys(paddr, size,
- 0, /* flags */
- dataMasterId());
+ mmio_req.setPhys(paddr, size, Request::UNCACHEABLE, dataMasterId());
const MemCmd cmd(write ? MemCmd::WriteReq : MemCmd::ReadReq);
Packet pkt(&mmio_req, cmd);