mirror of https://github.com/xemu-project/xemu.git
17 lines
382 B
C++
17 lines
382 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* LSX translate functions
|
|
* Copyright (c) 2022-2023 Loongson Technology Corporation Limited
|
|
*/
|
|
|
|
#ifndef CONFIG_USER_ONLY
|
|
#define CHECK_SXE do { \
|
|
if ((ctx->base.tb->flags & HW_FLAGS_EUEN_SXE) == 0) { \
|
|
generate_exception(ctx, EXCCODE_SXD); \
|
|
return true; \
|
|
} \
|
|
} while (0)
|
|
#else
|
|
#define CHECK_SXE
|
|
#endif
|