]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/m32r/traps.c
sim: m32r: add __linux__ hack for non-Linux hosts
authorMike Frysinger <vapier@gentoo.org>
Fri, 20 Aug 2021 01:00:42 +0000 (21:00 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 22 Aug 2021 07:11:16 +0000 (03:11 -0400)
commitfe7f0b013526b30ef657c5ad34a3c622a54499ac
tree58b8f1d0d4f56eb2cda60fbee2280e78860e5ec9
parentca4f6fe4fbf9fa0e76fca57ccf4cd4df81dcb47a
sim: m32r: add __linux__ hack for non-Linux hosts

The m32r Linux syscall emulation logic assumes the host environment
directly matches -- it's being run on 32-bit little endian Linux.
This breaks building for non-Linux systems, so put all the code in
__linux__ ifdef checks.  This code needs a lot of love to make it
work everywhere, but let's at least unbreak it for non-Linux hosts.
sim/m32r/traps.c