Re: [PATCH 06/17] arm: Use -mstrict-align when the MMU is off

2025-02-24 Thread Mark Kettenis
> From: Sam Edwards > Date: Sun, 23 Feb 2025 21:55:13 -0800 Hi Sam, > On ARM, enabling the MMU is a prerequisite to enabling caching, which > allows unaligned memory accesses by consolidating them into aligned > accesses. When the MMU is disabled, however, all accesses must strictly > adhere to

Re: [PATCH 06/17] arm: Use -mstrict-align when the MMU is off

2025-02-24 Thread Heinrich Schuchardt
On 2/24/25 06:55, Sam Edwards wrote: On ARM, enabling the MMU is a prerequisite to enabling caching, which allows unaligned memory accesses by consolidating them into aligned accesses. When the MMU is disabled, however, all accesses must strictly adhere to the alignment rules. Some compilers (e.

[PATCH 06/17] arm: Use -mstrict-align when the MMU is off

2025-02-23 Thread Sam Edwards
On ARM, enabling the MMU is a prerequisite to enabling caching, which allows unaligned memory accesses by consolidating them into aligned accesses. When the MMU is disabled, however, all accesses must strictly adhere to the alignment rules. Some compilers (e.g. Clang) contain optimizations that ma