Open
Description
The description for mtvecc
has the following:
From these two highlighted sections, it's a bit unclear when writing to xtvecc
whether the representability check should be done on
mtvecc.address
(including mode bits) - this is the address that is visible to SW- OR
{mtvecc.address[MXLEN-1:2], 2'b00}
- this is the address that is actually jumped to (for non-vectored traps) - OR both of the above
(Obviously when MODE=vectored
we also do the representability check on {mtvecc.address[MXLEN-1:2], 2'b00} + 4 * HICAUSE
- but that is more clear, since we're checking the maximum possible vector target is in range.)
Metadata
Assignees
Labels
No labels
Activity