changeset 78d25904f66a in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=78d25904f66a
description:
        X86: Fix how the parity flag is computed.
        It's only for the lowest order byte, and I had the polarity wrong.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/arch/x86/insts/microregop.cc |    2 +-

diffs (12 lines):

diff -r 606cf4e1ade6 -r 78d25904f66a src/arch/x86/insts/microregop.cc
--- a/src/arch/x86/insts/microregop.cc  Mon Aug 03 11:06:19 2009 -0700
+++ b/src/arch/x86/insts/microregop.cc  Wed Aug 05 02:56:12 2009 -0700
@@ -78,7 +78,7 @@
             if(subtract)
                 flags ^= (flagMask & (ECFBit | CFBit));
         }
-        if(flagMask & PFBit && findParity(dataSize*8, _dest))
+        if(flagMask & PFBit && !findParity(8, _dest))
             flags |= PFBit;
         if(flagMask & AFBit)
         {
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to