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:
Guan Xuetao 2012-08-10 14:42:23 +08:00 committed by Blue Swirl
parent 527d9979b4
commit d48813dd76
4 changed files with 25 additions and 12 deletions

View file

@ -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 */