O3 CPU: Remove alignment check from dynamic instruction read/write functions.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 27 Aug 2007 03:31:30 +0000 (20:31 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 27 Aug 2007 03:31:30 +0000 (20:31 -0700)
--HG--
extra : convert_revision : e5d415b4bf79353ef3c9f4dc5af09ab4102c55fb

src/cpu/base_dyn_inst.hh

index 362babeff80baf40cff5ed0b8d0cc6381af463f1..0f2a90bf60683c91a454b9ef5484b33aaeaea2a9 100644 (file)
@@ -847,12 +847,6 @@ BaseDynInst<Impl>::read(Addr addr, T &data, unsigned flags)
     req->setVirt(asid, addr, sizeof(T), flags, this->PC);
     req->setThreadContext(thread->readCpuId(), threadNumber);
 
-    if ((req->getVaddr() & (TheISA::VMPageSize - 1)) + req->getSize() >
-        TheISA::VMPageSize) {
-        delete req;
-        return TheISA::genAlignmentFault();
-    }
-
     fault = cpu->translateDataReadReq(req, thread);
 
     if (req->isUncacheable())
@@ -909,12 +903,6 @@ BaseDynInst<Impl>::write(T data, Addr addr, unsigned flags, uint64_t *res)
     req->setVirt(asid, addr, sizeof(T), flags, this->PC);
     req->setThreadContext(thread->readCpuId(), threadNumber);
 
-    if ((req->getVaddr() & (TheISA::VMPageSize - 1)) + req->getSize() >
-        TheISA::VMPageSize) {
-        delete req;
-        return TheISA::genAlignmentFault();
-    }
-
     fault = cpu->translateDataWriteReq(req, thread);
 
     if (req->isUncacheable())