Merge zizzer:/bk/newmem
authorAli Saidi <saidi@eecs.umich.edu>
Mon, 12 Feb 2007 18:22:36 +0000 (13:22 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Mon, 12 Feb 2007 18:22:36 +0000 (13:22 -0500)
into  zeep.pool:/z/saidi/work/m5.newmem

src/cpu/simple/atomic.cc:
    merge steve's changes in.

--HG--
extra : convert_revision : a17eda37cd63c9380af6fe68b0aef4b1e1974231

1  2 
src/arch/alpha/isa/mem.isa
src/arch/alpha/locked_mem.hh
src/cpu/simple/atomic.cc
src/cpu/simple/base.hh

Simple merge
Simple merge
index 6a536fbcd17377fd5950d4e12e6865fff13560b3,6904ed936261322e0e695177d5edce7c0e7a63cd..0728675363a3a2db6effa2bb210f76cdc9ed342a
@@@ -401,8 -418,20 +418,11 @@@ AtomicSimpleCPU::write(T data, Addr add
  #endif
          }
  
-         if (res) {
+         if (req->isSwap()) {
+             assert(res);
+             *res = pkt->get<T>();
 -        }
 -
 -        if (req->isLocked()) {
 -            uint64_t scResult = req->getExtraData();
 -            if (scResult != 0) {
 -                // clear failure counter
 -                thread->setStCondFailures(0);
 -            }
 -            if (res) {
 -                *res = req->getExtraData();
 -            }
++        } else if (res) {
 +            *res = req->getScResult();
          }
      }
  
Simple merge