Re: [PATCH v3 3/6] target/arm: Take an exception if PC is misaligned

2021-09-20 Thread Peter Maydell
On Mon, 20 Sept 2021 at 03:48, Richard Henderson wrote: > > For A64, any input to an indirect branch can cause this. > > For A32, many indirect branch paths force the branch to be aligned, > but BXWritePC does not. This includes the BX instruction but also > other interworking changes to PC. Pri

[PATCH v3 3/6] target/arm: Take an exception if PC is misaligned

2021-09-19 Thread Richard Henderson
For A64, any input to an indirect branch can cause this. For A32, many indirect branch paths force the branch to be aligned, but BXWritePC does not. This includes the BX instruction but also other interworking changes to PC. Prior to v8, this case is UNDEFINED. With v8, this is CONSTRAINED UNPRE