cpu,device/: Remove some __SIMPLE_DEVICE__ and __ROMCC__ use

Change-Id: I62d7450c8e83eec7bf4ad5d0709269a132fd0499
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35649
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Kyösti Mälkki
2019-09-27 15:02:32 +03:00
parent f2cc3dd8ea
commit 44da9e201c
4 changed files with 12 additions and 15 deletions

View File

@@ -214,7 +214,8 @@ static inline bool cpu_is_intel(void)
return CONFIG(CPU_INTEL_COMMON) || CONFIG(SOC_INTEL_COMMON);
}
#ifndef __SIMPLE_DEVICE__
#ifndef __ROMCC__
/* romcc does not support anonymous structs. */
struct device;
@@ -258,9 +259,8 @@ static inline struct cpu_info *cpu_info(void)
);
return ci;
}
#endif
#ifndef __ROMCC__ // romcc is segfaulting in some cases
/* romcc is segfaulting in some cases. */
struct cpuinfo_x86 {
uint8_t x86; /* CPU family */
uint8_t x86_vendor; /* CPU vendor */