Simple CPU fix simple mistake in translateDataWriteAddr.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 20 Nov 2007 23:37:56 +0000 (15:37 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 20 Nov 2007 23:37:56 +0000 (15:37 -0800)
--HG--
extra : convert_revision : 6a6a7d05f62d9d9868be0707e4dc186a5f7ecf7d

src/cpu/simple/atomic.cc

index 9d7181cea8dbb6fe11cf965b9f96d1a52c267488..aead5aadaf8bc7dafb338438b8f90ce7cd6b3506 100644 (file)
@@ -609,7 +609,7 @@ AtomicSimpleCPU::translateDataWriteAddr(Addr vaddr, Addr &paddr,
     dcache_latency = 0;
 
     while(1) {
-        req->setVirt(0, vaddr, flags, flags, thread->readPC());
+        req->setVirt(0, vaddr, dataSize, flags, thread->readPC());
 
         // translate to physical address
         Fault fault = thread->translateDataWriteReq(req);