From 8761de459c4203bd21d067bf1d98f84b9d627d83 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Mon, 2 Sep 2019 13:23:30 +0200 Subject: [PATCH] cpu/native: advertise support for unaligned memory access On Linux, even if the architecture does not support it, the kernel will catch the fault and emulate the unaligned accesss. --- cpu/native/include/cpu.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpu/native/include/cpu.h b/cpu/native/include/cpu.h index b1641642c46b3..ff38639fd5cd4 100644 --- a/cpu/native/include/cpu.h +++ b/cpu/native/include/cpu.h @@ -26,6 +26,12 @@ extern "C" { #endif +/** + * @brief The CPU supports unaligned memory access. + * Even if the underlying architecture does not support it, the kernel will take care of it. + */ +#define CPU_HAS_UNALIGNED_ACCESS + /** * @brief Prints the address the callee will return to */