Use tmpAddr in place of pointer in incOffsetFat following Dapeng Gao's email

This commit is contained in:
Alexandre Joannou
2021-01-18 16:06:17 +00:00
parent 938261d465
commit 508da818ba

View File

@@ -653,7 +653,7 @@ function VnD#(CapFat) incOffsetFat(CapFat cap, LCapAddress pointer, Bit#(CapAddr
// In the incOffset case, the 'pointer' argument already contains the new address
CapAddress tmpAddr = truncate(pointer);
ret.address = zeroExtend(tmpAddr);
ret.addrBits = truncate(pointer >> e);
ret.addrBits = truncate(tmpAddr >> e);
end
// Nullify the capability if the representable bounds check has failed
if (!inBounds) ret.isCapability = False;//nullifyCap(ret);