Provide redundant argument to setOffset

This commit is contained in:
Peter Rugg
2019-09-09 15:28:57 +01:00
parent 862bfb39bd
commit 12f8cb3ed9

View File

@@ -1014,7 +1014,7 @@ instance CHERICap #(CapPipe, OTypeW, FlagsW, CapAddressW, CapW, TSub#(MW, 3));
function getOffset (x) = getOffsetFat(x.capFat, x.tempFields);
function Exact#(CapPipe) setOffset (CapPipe cap, Bit#(CapAddressW) offset, Bool increment);
let result = incOffset(cap.capFat, ?, zeroExtend(offset), cap.tempFields, !increment);
let result = incOffset(cap.capFat, pack(cap.capFat.address) + zeroExtend(offset), zeroExtend(offset), cap.tempFields, !increment);
cap.capFat = result.d;
cap.tempFields = getTempFields(cap.capFat);
return Exact {exact: result.v, value: cap};