Open Timmmm opened 1 month ago
When setting PC to a vectored address on trap or xRET, the spec says:
If the fetch is successful, the hart clears the low bit of the handler address and sets the PC to this handler address.
This is presumably a mistake - it should clear the lowest bit if 16-bit instructions are supported, otherwise clear the lowest two bits.
When setting PC to a vectored address on trap or xRET, the spec says:
This is presumably a mistake - it should clear the lowest bit if 16-bit instructions are supported, otherwise clear the lowest two bits.