summaryrefslogtreecommitdiff
path: root/assembler
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2014-01-23 13:26:11 +0800
committerDamien Lespiau <damien.lespiau@intel.com>2014-09-30 12:21:03 +0100
commitd6ff0b3f1f78c16a2754454c6134a999affa7f4c (patch)
tree6fe22a236fb6ca3acd7c0a35d277f805050bd357 /assembler
parente48666947df43814b89c4280e2c2208274628542 (diff)
assembler/skl: Add more cache agent for write(...)
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler')
-rw-r--r--assembler/gram.y40
1 files changed, 30 insertions, 10 deletions
diff --git a/assembler/gram.y b/assembler/gram.y
index 157ce793..96893529 100644
--- a/assembler/gram.y
+++ b/assembler/gram.y
@@ -1671,11 +1671,21 @@ msgtarget: NULL_TOKEN
INTEGER RPAREN
{
if (IS_GENp(8)) {
- if ($9 != 0 &&
- $9 != GEN6_SFID_DATAPORT_RENDER_CACHE &&
- $9 != GEN7_SFID_DATAPORT_DATA_CACHE &&
- $9 != HSW_SFID_DATAPORT_DATA_CACHE1) {
- error (&@9, "error: wrong cache type\n");
+ if (IS_GENp(9)) {
+ if ($9 != 0 &&
+ $9 != GEN6_SFID_DATAPORT_RENDER_CACHE &&
+ $9 != GEN7_SFID_DATAPORT_DATA_CACHE &&
+ $9 != HSW_SFID_DATAPORT_DATA_CACHE1 &&
+ $9 != SKL_SFID_DATAPORT_DATA_CACHE2) {
+ error (&@9, "error: wrong cache type\n");
+ }
+ } else {
+ if ($9 != 0 &&
+ $9 != GEN6_SFID_DATAPORT_RENDER_CACHE &&
+ $9 != GEN7_SFID_DATAPORT_DATA_CACHE &&
+ $9 != HSW_SFID_DATAPORT_DATA_CACHE1) {
+ error (&@9, "error: wrong cache type\n");
+ }
}
if ($9 == 0)
@@ -1732,11 +1742,21 @@ msgtarget: NULL_TOKEN
INTEGER COMMA INTEGER RPAREN
{
if (IS_GENp(8)) {
- if ($9 != 0 &&
- $9 != GEN6_SFID_DATAPORT_RENDER_CACHE &&
- $9 != GEN7_SFID_DATAPORT_DATA_CACHE &&
- $9 != HSW_SFID_DATAPORT_DATA_CACHE1) {
- error (&@9, "error: wrong cache type\n");
+ if (IS_GENp(9)) {
+ if ($9 != 0 &&
+ $9 != GEN6_SFID_DATAPORT_RENDER_CACHE &&
+ $9 != GEN7_SFID_DATAPORT_DATA_CACHE &&
+ $9 != HSW_SFID_DATAPORT_DATA_CACHE1 &&
+ $9 != SKL_SFID_DATAPORT_DATA_CACHE2) {
+ error (&@9, "error: wrong cache type\n");
+ }
+ } else {
+ if ($9 != 0 &&
+ $9 != GEN6_SFID_DATAPORT_RENDER_CACHE &&
+ $9 != GEN7_SFID_DATAPORT_DATA_CACHE &&
+ $9 != HSW_SFID_DATAPORT_DATA_CACHE1) {
+ error (&@9, "error: wrong cache type\n");
+ }
}
if ($9 == 0)