use r112 as source of EOT message
authorZou Nan hai <nanhai.zou@intel.com>
Thu, 15 Aug 2013 23:56:08 +0000 (07:56 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 16 Aug 2013 06:47:12 +0000 (14:47 +0800)
Fix random hang cases.
use r112 as source of EOT message.
Bspec requires r112-r127 as EOT message source.

Signed-off-by: Zou Nanhai <nanhai.zou@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/gen_context.cpp

index 364ed1d..ff18c46 100644 (file)
@@ -822,11 +822,12 @@ namespace gbe
   }
 
   void GenContext::emitEotInstruction(const SelectionInstruction &insn) {
+    p->MOV(GenRegister::ud8grf(112, 0), GenRegister::ud8grf(0, 0));
     p->push();
       p->curr.predicate = GEN_PREDICATE_NONE;
       p->curr.execWidth = 8;
       p->curr.noMask = 1;
-      p->EOT(0);
+      p->EOT(112);
     p->pop();
   }