search for: trustedfirmware

Displaying 2 results from an estimated 2 matches for "trustedfirmware".

2020 Jun 01
3
Aarch64: unaligned access despite -mstrict-align
Hi, I experienced a crash in code compiled with Clang 10.0.0 due to a misaligned 64-bit data access. The (ARMv8) CPU is configured with SCTL.A == 1 (alignment check enable). With SCTLR.A == 0 the code runs as expected. After some investigation I came up with the following reproducer: ---8<-------8<-------8<-------8<-------8<-------8<-------8<------- $ cat test.c extern char
2020 Jun 01
2
Aarch64: unaligned access despite -mstrict-align
..._____ From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Sjoerd Meijer via llvm-dev <llvm-dev at lists.llvm.org> Sent: 01 June 2020 16:32 To: llvm-dev at lists.llvm.org <llvm-dev at lists.llvm.org>; Jerome Forissier <jerome at forissier.org> Cc: op-tee at lists.trustedfirmware.org <op-tee at lists.trustedfirmware.org> Subject: Re: [llvm-dev] Aarch64: unaligned access despite -mstrict-align Hi Jerome, > Note the 'ldr x9, [x0]'. At this point there is no guarantee that x0 is a multiple of 8, so why is Clang generating this code? I think the point is tha...