saving commented delta changes
Some checks failed
check properties / tests (push) Has been cancelled
Some checks failed
check properties / tests (push) Has been cancelled
This commit is contained in:
@@ -1408,6 +1408,10 @@ instance CHERICap #(CapPipe, OTypeW, FlagsW, CapAddrW, CapW, TSub#(MW, 3));
|
||||
, mask: result.mask };
|
||||
endfunction
|
||||
|
||||
// TODO: Similar to set bounds but sets the delta value between the 38th and 64th bit
|
||||
// function setDeltaValue (cap, length);
|
||||
// endfunction
|
||||
|
||||
// Create function to set delta value
|
||||
// function setDeltaValue (CapPipe cap, Bit#(Delta) delta);
|
||||
// // let result = setDelta(cap.capFat, delta);
|
||||
@@ -1415,6 +1419,24 @@ instance CHERICap #(CapPipe, OTypeW, FlagsW, CapAddrW, CapW, TSub#(MW, 3));
|
||||
// return cap;
|
||||
// endfunction
|
||||
|
||||
// function Bit#(CapAddrW) encodeDelta(Bit#(CapAddrW) addr, Bit#(Delta) delta);
|
||||
// // Bits 0..38: actual virtual address
|
||||
// let va_bits = addr[38:0];
|
||||
|
||||
// // Bits 63:39: store delta in upper bits
|
||||
// let delta_bits = zeroExtend(delta); // extend delta to 25 bits (63-39+1 = 25)
|
||||
// let delta_bits_truncated = delta_bits[24:0]; // ensure fits exactly in bits 63:39
|
||||
|
||||
// return {delta_bits_truncated, va_bits};
|
||||
// endfunction
|
||||
|
||||
// // Extract the delta stored in bits 63:39 of the address
|
||||
// function Bit#(Delta) decodeDelta(Bit#(CapAddrW) addr);
|
||||
// // Bits 63:39 contain the delta
|
||||
// let delta_bits = addr[63:39]; // 25 bits
|
||||
// return truncate(delta_bits); // truncate to the width of Delta
|
||||
// endfunction
|
||||
|
||||
|
||||
|
||||
function nullWithAddr (addr);
|
||||
|
||||
Reference in New Issue
Block a user