arch: Cleanup of __ARM__ checks

* gcc 7.x defines __arm__ and __ARM__ (and others)
* clang defines __arm__ and __arm
* cleanup a few related ifdef vs if macros

Change-Id: I5da4bafac590f6fa3e10e543688001c2449f840d
This commit is contained in:
Alexander von Gluck IV
2018-07-31 19:12:20 -05:00
parent 26ae216d0e
commit 9642f7705b
12 changed files with 26 additions and 27 deletions
+6 -6
View File
@@ -20,17 +20,17 @@
#include <arch/arm/arch_debugger.h>
#ifdef __x86_64__
#if defined(__x86_64__)
typedef struct x86_64_debug_cpu_state debug_cpu_state;
#elif __INTEL__
#elif defined( __INTEL__)
typedef struct x86_debug_cpu_state debug_cpu_state;
#elif __POWERPC__
#elif defined(__POWERPC__)
typedef struct ppc_debug_cpu_state debug_cpu_state;
#elif __M68K__
#elif defined(__M68K__)
typedef struct m68k_debug_cpu_state debug_cpu_state;
#elif __MIPSEL__
#elif defined(__MIPSEL__)
typedef struct mipsel_debug_cpu_state debug_cpu_state;
#elif __ARM__
#elif defined(__arm__)
typedef struct arm_debug_cpu_state debug_cpu_state;
#else
#error unsupported architecture