From d48813dd7639885339e5e7a8cdf2d0e3ca714e1f Mon Sep 17 00:00:00 2001 From: Guan Xuetao Date: Fri, 10 Aug 2012 14:42:23 +0800 Subject: 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 Signed-off-by: Blue Swirl --- cpu-exec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpu-exec.c') diff --git a/cpu-exec.c b/cpu-exec.c index 4fee0618bd..134b3c4fcf 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -444,6 +444,7 @@ int cpu_exec(CPUArchState *env) #elif defined(TARGET_UNICORE32) if (interrupt_request & CPU_INTERRUPT_HARD && !(env->uncached_asr & ASR_I)) { + env->exception_index = UC32_EXCP_INTR; do_interrupt(env); next_tb = 0; } -- cgit v1.2.3