Closed marnovandermaas closed 4 months ago
Looks like it might be a recently introduced bug in the Sail compiler. I'll investigate a bit. That type looks a bit odd anyway as I'd expect the result to be in the range 0..2**xlen-1 . That doesn't appear to be the problem, though.
Ok, thanks. May be worth opening up an issue on the Sail repo in that case.
Should now be fixed in Sail if you pull the latest commit.
Ok, I'm going to close this issue now.
I am building with upstream Sail, commit: b81e2823f8b4ffcf14cb0b11c260d79d3a19b0dc
I'm getting the following type error:
In the code the type definition says the execution code must be less than
xlen
: https://github.com/microsoft/cheriot-sail/blob/ef8cfbccdbaf760798449827b5d82ffa2ba9a582/src/cheri_riscv_types.sail#L140I'm not exactly sure why the Sail compiler thinks
xlen
is equal to 2.