Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_UM_XOR_H
0003 #define _ASM_UM_XOR_H
0004 
0005 #ifdef CONFIG_64BIT
0006 #undef CONFIG_X86_32
0007 #define TT_CPU_INF_XOR_DEFAULT (AVX_SELECT(&xor_block_sse_pf64))
0008 #else
0009 #define CONFIG_X86_32 1
0010 #define TT_CPU_INF_XOR_DEFAULT (AVX_SELECT(&xor_block_8regs))
0011 #endif
0012 
0013 #include <asm/cpufeature.h>
0014 #include <../../x86/include/asm/xor.h>
0015 #include <linux/time-internal.h>
0016 
0017 #ifdef CONFIG_UML_TIME_TRAVEL_SUPPORT
0018 #undef XOR_SELECT_TEMPLATE
0019 /* pick an arbitrary one - measuring isn't possible with inf-cpu */
0020 #define XOR_SELECT_TEMPLATE(x)  \
0021     (time_travel_mode == TT_MODE_INFCPU ? TT_CPU_INF_XOR_DEFAULT : x)
0022 #endif
0023 
0024 #endif