Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pipeline: fix instruction translation
[ upstream commit d366a48 ] The SWX pipeline instructions work with operands of different types: header fields (h.header.field), packet meta-data (m.field), extern object mailbox field (e.obj.field), extern function (f.field), action data read from table entries (t.field), or immediate values; hence the HMEFTI acronym. For some pipeline instructions (add/sub, srl/shr, jmplt/jmpgt), only the H, M and I cases were handled, while the E, F and T cases were disregarded. This is what we fix here. Fixes: baf7999 ("pipeline: introduce SWX add instruction") Fixes: c88c629 ("pipeline: introduce SWX subtract instruction") Fixes: b09ba6d ("pipeline: introduce SWX SHL instruction") Fixes: e0f5163 ("pipeline: introduce SWX SHR instruction") Fixes: b3947e2 ("pipeline: introduce SWX jump and return instructions") Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
- Loading branch information