mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable
This patch initializes the cpuid to exactly correct value because linux kernel will check it. In addition, the exception types are specified in proper situations. Then it could make exceptions generated correctly and timely. Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
527d9979b4
commit
d48813dd76
4 changed files with 25 additions and 12 deletions
|
@ -958,7 +958,8 @@ void cpu_loop(CPUUniCore32State *env)
|
|||
}
|
||||
}
|
||||
break;
|
||||
case UC32_EXCP_TRAP:
|
||||
case UC32_EXCP_DTRAP:
|
||||
case UC32_EXCP_ITRAP:
|
||||
info.si_signo = SIGSEGV;
|
||||
info.si_errno = 0;
|
||||
/* XXX: check env->error_code */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue