diff options
| author | Song Gao <gaosong@loongson.cn> | 2023-05-04 20:27:29 +0800 |
|---|---|---|
| committer | Song Gao <gaosong@loongson.cn> | 2023-05-06 11:19:45 +0800 |
| commit | a3f3db5cda7bf6edf0fc0c94c3aa450eb79a2185 (patch) | |
| tree | 131bddc12d036ba77ed30805cefeef34516a9a88 /target/loongarch/cpu.c | |
| parent | a0c9400a5b46a9a5ced2c76aebf25a80360ee4f6 (diff) | |
| download | focaccia-qemu-a3f3db5cda7bf6edf0fc0c94c3aa450eb79a2185.tar.gz focaccia-qemu-a3f3db5cda7bf6edf0fc0c94c3aa450eb79a2185.zip | |
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>
Diffstat (limited to 'target/loongarch/cpu.c')
| -rw-r--r-- | target/loongarch/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index 18b41221a6..55d7f9255e 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -52,6 +52,7 @@ static const char * const excp_names[] = { [EXCCODE_FPE] = "Floating Point Exception", [EXCCODE_DBP] = "Debug breakpoint", [EXCCODE_BCE] = "Bound Check Exception", + [EXCCODE_SXD] = "128 bit vector instructions Disable exception", }; const char *loongarch_exception_name(int32_t exception) @@ -187,6 +188,7 @@ static void loongarch_cpu_do_interrupt(CPUState *cs) case EXCCODE_FPD: case EXCCODE_FPE: case EXCCODE_BCE: + case EXCCODE_SXD: env->CSR_BADV = env->pc; QEMU_FALLTHROUGH; case EXCCODE_ADEM: |