diff --git a/backends/tc/backend.cpp b/backends/tc/backend.cpp index 94d17965a9..2c9a1d385d 100644 --- a/backends/tc/backend.cpp +++ b/backends/tc/backend.cpp @@ -521,7 +521,7 @@ void ConvertToBackendIR::updateAddOnMissTable(const IR::P4Table *t) { add_on_miss_tables.push_back(t); auto tableDefinition = ((IR::TCTable *)table); tableDefinition->setTableAddOnMiss(); - tableDefinition->setTablePermisson(HandleTableAccessPermission(t)); + tableDefinition->setTablePermission(HandleTableAccessPermission(t)); } } } @@ -670,7 +670,7 @@ void ConvertToBackendIR::postorder(const IR::P4Table *t) { } } } - tableDefinition->setTablePermisson(HandleTableAccessPermission(t)); + tableDefinition->setTablePermission(HandleTableAccessPermission(t)); auto actionlist = t->getActionList(); for (auto action : actionlist->actionList) { for (auto actionDef : tcPipeline->actionDefs) { diff --git a/backends/tc/introspection.h b/backends/tc/introspection.h index e7b9fabf34..e4fc83161a 100644 --- a/backends/tc/introspection.h +++ b/backends/tc/introspection.h @@ -107,6 +107,7 @@ struct TableAttributes { safe_vector actions; TableAttributes() { name = nullptr; + permissions = nullptr; id = 0; tentries = 0; numMask = 0; diff --git a/backends/tc/tc.def b/backends/tc/tc.def index 99fa45a16b..b973547ecc 100644 --- a/backends/tc/tc.def +++ b/backends/tc/tc.def @@ -245,7 +245,7 @@ class TCTable { ordered_map actionList; safe_vector const_entries; - void setTablePermisson(cstring p) { + void setTablePermission(cstring p) { permissions = p; } void setKeySize(unsigned k) {