mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/loongarch: Add CHECK_SXE maccro for check LSX enable
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Song Gao <gaosong@loongson.cn> Message-Id: <20230504122810.4094787-4-gaosong@loongson.cn>
This commit is contained in:
parent
a0c9400a5b
commit
a3f3db5cda
3 changed files with 15 additions and 0 deletions
|
@ -3,3 +3,14 @@
|
|||
* 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue