2019-12-13 09:01:28 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2021-03-12 15:16:08 +00:00
|
|
|
#ifndef _ASM_UM_XOR_H
|
|
|
|
#define _ASM_UM_XOR_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_64BIT
|
|
|
|
#undef CONFIG_X86_32
|
|
|
|
#else
|
|
|
|
#define CONFIG_X86_32 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <asm/cpufeature.h>
|
|
|
|
#include <../../x86/include/asm/xor.h>
|
2020-04-05 19:33:57 +00:00
|
|
|
#include <linux/time-internal.h>
|
2019-12-13 09:01:28 +00:00
|
|
|
|
2021-03-12 15:16:08 +00:00
|
|
|
#ifdef CONFIG_UML_TIME_TRAVEL_SUPPORT
|
|
|
|
#undef XOR_SELECT_TEMPLATE
|
2019-12-13 09:01:28 +00:00
|
|
|
/* pick an arbitrary one - measuring isn't possible with inf-cpu */
|
|
|
|
#define XOR_SELECT_TEMPLATE(x) \
|
|
|
|
(time_travel_mode == TT_MODE_INFCPU ? &xor_block_8regs : NULL)
|
2021-03-12 15:16:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|