target/loongach: Fix some exceptions failure in updating CSR_BADV
According to Volume 1 Manual 7.4.8 ,exception,SYS,BRK,INE,IPE,PPD FPE,SXD,ASXD are need't update CSR_BADV, this patch correct it. Signed-off-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn> (cherry picked from commit 70cf9b7bf7aff47f8d85ccce35b688dd91335cf0) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
21af0baf9a
commit
b8456254d0
1 changed files with 0 additions and 2 deletions
|
|
@ -121,8 +121,6 @@ static void loongarch_cpu_do_interrupt(CPUState *cs)
|
|||
case EXCCODE_FPE:
|
||||
case EXCCODE_SXD:
|
||||
case EXCCODE_ASXD:
|
||||
env->CSR_BADV = env->pc;
|
||||
QEMU_FALLTHROUGH;
|
||||
case EXCCODE_BCE:
|
||||
case EXCCODE_ADEM:
|
||||
case EXCCODE_PIL:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue