intel/tools: Simplify notification register handling

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5956>
This commit is contained in:
Matt Turner 2020-07-15 22:55:35 -07:00
parent 63181df09b
commit ac7ecd205b
2 changed files with 1 additions and 5 deletions

View file

@ -1813,10 +1813,6 @@ maskreg:
notifyreg:
NOTIFYREG subregnum
{
if ($1 > 0)
error(&@1, "Notification register number %d"
" out of range\n", $1);
int subnr = (p->devinfo->gen >= 11) ? 2 : 3;
if ($2 > subnr)
error(&@2, "Notification sub register number %d"

View file

@ -333,7 +333,7 @@ m[0-9]+ { yylval.integer = atoi(yytext + 1); BEGIN(REG); return MSGREG; }
sr[0-9]+ { yylval.integer = atoi(yytext + 2); return STATEREG; }
/* notification registers */
"n"[0-2]+ { yylval.integer = atoi(yytext + 1); BEGIN(REG); return NOTIFYREG; }
"n0" { BEGIN(REG); return NOTIFYREG; }
/* IP register */
"ip" { return IPREG; }