X86: Fix a bug with merge
authorGabe Black <gblack@eecs.umich.edu>
Sun, 29 Jul 2007 08:24:57 +0000 (01:24 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 29 Jul 2007 08:24:57 +0000 (01:24 -0700)
Merge was returning the value to merge in, not the actual result of the merge.

--HG--
extra : convert_revision : 230b4b5064037d099ae7859edabdf5be84603849

src/arch/x86/insts/static_inst.hh

index c39c2956ea0d4c99bd9cf440e434bb7169b8e014..f42e6693dd52f572fd47cfb52248c5e4b07ca64a 100644 (file)
@@ -58,6 +58,7 @@
 #ifndef __ARCH_X86_INSTS_STATICINST_HH__
 #define __ARCH_X86_INSTS_STATICINST_HH__
 
+#include "base/trace.hh"
 #include "cpu/static_inst.hh"
 
 namespace X86ISA
@@ -113,7 +114,7 @@ namespace X86ISA
               default:
                 panic("Tried to merge with unrecognized size %d.\n", size);
             }
-            return val;
+            return reg;
         }
 
         inline uint64_t pick(uint64_t from, int size)