diff -r d39d28bbd976 -r ac8afc4e01df src/arch/arm/isa/insts/misc.isa --- a/src/arch/arm/isa/insts/misc.isa Sat Oct 09 13:48:58 2010 -0700 +++ b/src/arch/arm/isa/insts/misc.isa Sat Oct 09 13:54:51 2010 -0700 @@ -671,7 +671,8 @@ exec_output += PredOpExecute.subst(setendIop) clrexCode = ''' - unsigned memAccessFlags = Request::CLREX|3|Request::LLSC; + unsigned memAccessFlags = Request::CLEAR_LOCK | + ArmISA::TLB::AlignWord | Request::LLSC; fault = xc->read(0, (uint32_t&)Mem, memAccessFlags); ''' clrexIop = InstObjParams("clrex", "Clrex","PredOp", diff -r d39d28bbd976 -r ac8afc4e01df src/arch/arm/isa/templates/misc.isa --- a/src/arch/arm/isa/templates/misc.isa Sat Oct 09 13:48:58 2010 -0700 +++ b/src/arch/arm/isa/templates/misc.isa Sat Oct 09 13:54:51 2010 -0700 @@ -367,7 +367,8 @@ if (%(predicate_test)s) { if (fault == NoFault) { - unsigned memAccessFlags = Request::CLREX|3|Request::LLSC; + unsigned memAccessFlags = Request::CLEAR_LOCK | + ArmISA::TLB::AlignWord | Request::LLSC; fault = xc->read(0, (uint32_t&)Mem, memAccessFlags); } } else { diff -r d39d28bbd976 -r ac8afc4e01df src/arch/arm/tlb.cc --- a/src/arch/arm/tlb.cc Sat Oct 09 13:48:58 2010 -0700 +++ b/src/arch/arm/tlb.cc Sat Oct 09 13:54:51 2010 -0700 @@ -376,10 +376,10 @@ // If this is a clrex instruction, provide a PA of 0 with no fault // This will force the monitor to set the tracked address to 0 // a bit of a hack but this effectively clrears this processors monitor - if (flags & Request::CLREX){ + if (flags & Request::CLEAR_LOCK){ req->setPaddr(0); req->setFlags(Request::UNCACHEABLE); - req->setFlags(Request::CLREX); + req->setFlags(Request::CLEAR_LOCK); return NoFault; } if ((req->isInstFetch() && (!sctlr.i)) || diff -r d39d28bbd976 -r ac8afc4e01df src/mem/cache/cache_impl.hh --- a/src/mem/cache/cache_impl.hh Sat Oct 09 13:48:58 2010 -0700 +++ b/src/mem/cache/cache_impl.hh Sat Oct 09 13:54:51 2010 -0700 @@ -306,7 +306,7 @@ int &lat, PacketList &writebacks) { if (pkt->req->isUncacheable()) { - if (pkt->req->isClrex()) { + if (pkt->req->isClearLock()) { tags->clearLocks(); } else { blk = tags->findBlock(pkt->getAddr()); @@ -449,7 +449,7 @@ } if (pkt->req->isUncacheable()) { - if (pkt->req->isClrex()) { + if (pkt->req->isClearLock()) { tags->clearLocks(); } else { BlkType *blk = tags->findBlock(pkt->getAddr()); diff -r d39d28bbd976 -r ac8afc4e01df src/mem/request.hh --- a/src/mem/request.hh Sat Oct 09 13:48:58 2010 -0700 +++ b/src/mem/request.hh Sat Oct 09 13:54:51 2010 -0700 @@ -72,7 +72,7 @@ /** This request is to a memory mapped register. */ static const FlagsType MMAPED_IPR = 0x00002000; /** This request is a clear exclusive. */ - static const FlagsType CLREX = 0x00004000; + static const FlagsType CLEAR_LOCK = 0x00004000; /** The request should ignore unaligned access faults */ static const FlagsType NO_ALIGN_FAULT = 0x00020000; @@ -458,7 +458,7 @@ bool isSwap() const { return _flags.isSet(MEM_SWAP|MEM_SWAP_COND); } bool isCondSwap() const { return _flags.isSet(MEM_SWAP_COND); } bool isMmapedIpr() const { return _flags.isSet(MMAPED_IPR); } - bool isClrex() const { return _flags.isSet(CLREX); } + bool isClearLock() const { return _flags.isSet(CLEAR_LOCK); } bool isMisaligned() const