summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHomer Hsing <homer.xing@intel.com>2012-09-27 15:44:15 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-09-28 04:06:00 -0400
commitd64d27a1ec91a7937c23887b8d16c73eb962da52 (patch)
treef1a92ed9dac668f757065f4c415ffb1f2a24745d
parentc3be8d13910e2ef19a2e10bfdb2f354a90fb75be (diff)
Make sure BREAK/CONT/HALT work on Gen6.
-rw-r--r--src/gram.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gram.y b/src/gram.y
index 5e4277d..c72cc9c 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -547,8 +547,8 @@ loopinstruction: predicate WHILE execsize relativelocation instoptions
haltinstruction: predicate HALT execsize relativelocation relativelocation instoptions
{
- // for Gen7
- /* Gen7 bspec: dst and src0 must be the null reg. */
+ // for Gen6, Gen7
+ /* Gen6, Gen7 bspec: dst and src0 must be the null reg. */
memset(&$$, 0, sizeof($$));
set_instruction_predicate(&$$, &$1);
$$.header.opcode = $2;
@@ -1092,7 +1092,7 @@ mathinstruction: predicate MATH_INST execsize dst src srcimm math_function insto
breakinstruction: predicate breakop execsize relativelocation relativelocation instoptions
{
- // for Gen7
+ // for Gen6, Gen7
memset(&$$, 0, sizeof($$));
set_instruction_predicate(&$$, &$1);
$$.header.opcode = $2;