Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux-gen: x86: sysinfo: fix cpu_isa_sw.x86 in 32-bit x86
The ODP_CPU_ARCH_X86_I686 value in odp_system_info_t::cpu_isa_sw.x86 indicates the IA32 ISA, but in the implementation the value is used only when __i686 or __i686__ is defined. In many x86_32 systems this causes sysinfo to return ODP_CPU_ARCH_X86_UNKNOWN in cpu_isa_sw.x86, which in turn fails API validation test. Fix the problem by recognizing IA32 ISA from the __i386 or __i386__ macro. Signed-off-by: Janne Peltonen <[email protected]> Reviewed-by: Jere Leppänen <[email protected]>
- Loading branch information