pass the address of both the old an new pcbb on context
authorNathan Binkert <binkertn@umich.edu>
Thu, 13 May 2004 11:28:54 +0000 (07:28 -0400)
committerNathan Binkert <binkertn@umich.edu>
Thu, 13 May 2004 11:28:54 +0000 (07:28 -0400)
switches.  (Makes other uncommitted code easier to merge.)

arch/alpha/ev5.cc:
    pass the address of both the old an new pcbb on context
    switches

--HG--
extra : convert_revision : bff8c8d1b532ad5f9af6270169bbfb1b5c05256a

arch/alpha/ev5.cc

index 9b3ac5fff7cfc7d6121c66412fc96ffe624ce1e9..468acdc55fa79d0468ff7171bd28d63b3514c425 100644 (file)
@@ -303,6 +303,7 @@ Fault
 ExecContext::setIpr(int idx, uint64_t val)
 {
     uint64_t *ipr = regs.ipr;
+    uint64_t old;
 
     if (misspeculating())
         return No_Fault;
@@ -355,8 +356,9 @@ ExecContext::setIpr(int idx, uint64_t val)
 
       case AlphaISA::IPR_PALtemp23:
         // write entire quad w/ no side-effect
+        old = ipr[idx];
         ipr[idx] = val;
-        kernelStats.context(ipr[idx]);
+        kernelStats.context(old, val);
         Annotate::Context(this);
         break;