riscv/riscv-isa-manual

Does misaligned exception in nottaken branches cause an exception?

omerguzelelectronicguy opened this issue · 3 comments

I couldn't understand the misaligned exception when the branch is not taken and the target has a misaligned address. Is there any explanation in the spec? If not I think it should be added to the spec.

This is from an older release of the spec:

grafik

So, no, there will be no exception in that case.

Thank you. I think it should be in the latest version of the spec too.

it should be in the latest version of the spec

It is:

true. If the branch condition evaluates to false, the
instruction-address-misaligned exception will not be raised.