assembler/bdw: Small cleanup
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 16 Aug 2013 22:24:25 +0000 (15:24 -0700)
committerBen Widawsky <benjamin.widawsky@intel.com>
Wed, 6 Nov 2013 17:39:41 +0000 (09:39 -0800)
This was originally part of:

commit 62298329350b965e4bbfc558e5a4b1b3646742ea
Author: Xiang, Haihao <haihao.xiang@intel.com>
Date:   Wed Aug 14 14:21:16 2013 -0700

    assembler: error for the wrong syntax of SEND instruction on GEN6+

I merged that patch separately, but this tiny hunk was leftover. In
order to not muck in changing too much history, I am leaving this as a
discrete patch, but with the changed commit message

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
assembler/gram.y

index 9b183be..6978de3 100644 (file)
@@ -1364,9 +1364,7 @@ sendinstruction: predicate sendop execsize exp post_dst payload msgtarget
                  if (set_instruction_src1(&$$, &$8, &@8) != 0)
                    YYERROR;
 
-                 if (IS_GENp(8)) {
-                     gen8_set_eot(GEN8(&$$), !!($7 & EX_DESC_EOT_MASK));
-                 } else if (IS_GENx(5)) {
+                 if (IS_GENx(5)) {
                      GEN(&$$)->bits2.send_gen5.sfid = ($7 & EX_DESC_SFID_MASK);
                      GEN(&$$)->bits3.generic_gen5.end_of_thread = !!($7 & EX_DESC_EOT_MASK);
                  }