Skip to content

Commit

Permalink
target-arm: Fix lpae bit in FSR on an alignment fault
Browse files Browse the repository at this point in the history
If an alignment fault occurred and target EL is using AArch32,
then DFSR/IFSR bit LPAE[9] must be set correctly.

Signed-off-by: Sergey Sorokin <[email protected]>
Message-id: [email protected]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
  • Loading branch information
afarallax authored and pm215 committed Sep 6, 2016
1 parent c2da8a8 commit e0fe723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-arm/op_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void arm_cpu_do_unaligned_access(CPUState *cs, vaddr vaddr,
* the LPAE long descriptor format, or the short descriptor format
*/
if (arm_s1_regime_using_lpae_format(env, cpu_mmu_index(env, false))) {
env->exception.fsr = 0x21;
env->exception.fsr = (1 << 9) | 0x21;
} else {
env->exception.fsr = 0x1;
}
Expand Down

0 comments on commit e0fe723

Please sign in to comment.