Skip to content

Commit

Permalink
cpu/native: advertise support for unaligned memory access
Browse files Browse the repository at this point in the history
On Linux, even if the architecture does not support it, the kernel will
catch the fault and emulate the unaligned accesss.
  • Loading branch information
benpicco committed Sep 2, 2019
1 parent e6c8e9b commit 8761de4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpu/native/include/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 8761de4

Please sign in to comment.