xor.h 639 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_UM_XOR_H
  3. #define _ASM_UM_XOR_H
  4. #ifdef CONFIG_64BIT
  5. #undef CONFIG_X86_32
  6. #define TT_CPU_INF_XOR_DEFAULT (AVX_SELECT(&xor_block_sse_pf64))
  7. #else
  8. #define CONFIG_X86_32 1
  9. #define TT_CPU_INF_XOR_DEFAULT (AVX_SELECT(&xor_block_8regs))
  10. #endif
  11. #include <asm/cpufeature.h>
  12. #include <../../x86/include/asm/xor.h>
  13. #include <linux/time-internal.h>
  14. #ifdef CONFIG_UML_TIME_TRAVEL_SUPPORT
  15. #undef XOR_SELECT_TEMPLATE
  16. /* pick an arbitrary one - measuring isn't possible with inf-cpu */
  17. #define XOR_SELECT_TEMPLATE(x) \
  18. (time_travel_mode == TT_MODE_INFCPU ? TT_CPU_INF_XOR_DEFAULT : x)
  19. #endif
  20. #endif