mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -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
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue