mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
unicore32: necessary modifications for other files to support unicore32
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
8b5d487d4d
commit
d2fbca9422
10 changed files with 202 additions and 14 deletions
12
cpu-exec.c
12
cpu-exec.c
|
@ -267,6 +267,7 @@ int cpu_exec(CPUState *env1)
|
|||
env->cc_x = (env->sr >> 4) & 1;
|
||||
#elif defined(TARGET_ALPHA)
|
||||
#elif defined(TARGET_ARM)
|
||||
#elif defined(TARGET_UNICORE32)
|
||||
#elif defined(TARGET_PPC)
|
||||
#elif defined(TARGET_LM32)
|
||||
#elif defined(TARGET_MICROBLAZE)
|
||||
|
@ -335,6 +336,8 @@ int cpu_exec(CPUState *env1)
|
|||
do_interrupt(env);
|
||||
#elif defined(TARGET_ARM)
|
||||
do_interrupt(env);
|
||||
#elif defined(TARGET_UNICORE32)
|
||||
do_interrupt(env);
|
||||
#elif defined(TARGET_SH4)
|
||||
do_interrupt(env);
|
||||
#elif defined(TARGET_ALPHA)
|
||||
|
@ -367,7 +370,7 @@ int cpu_exec(CPUState *env1)
|
|||
}
|
||||
#if defined(TARGET_ARM) || defined(TARGET_SPARC) || defined(TARGET_MIPS) || \
|
||||
defined(TARGET_PPC) || defined(TARGET_ALPHA) || defined(TARGET_CRIS) || \
|
||||
defined(TARGET_MICROBLAZE) || defined(TARGET_LM32)
|
||||
defined(TARGET_MICROBLAZE) || defined(TARGET_LM32) || defined(TARGET_UNICORE32)
|
||||
if (interrupt_request & CPU_INTERRUPT_HALT) {
|
||||
env->interrupt_request &= ~CPU_INTERRUPT_HALT;
|
||||
env->halted = 1;
|
||||
|
@ -514,6 +517,12 @@ int cpu_exec(CPUState *env1)
|
|||
do_interrupt(env);
|
||||
next_tb = 0;
|
||||
}
|
||||
#elif defined(TARGET_UNICORE32)
|
||||
if (interrupt_request & CPU_INTERRUPT_HARD
|
||||
&& !(env->uncached_asr & ASR_I)) {
|
||||
do_interrupt(env);
|
||||
next_tb = 0;
|
||||
}
|
||||
#elif defined(TARGET_SH4)
|
||||
if (interrupt_request & CPU_INTERRUPT_HARD) {
|
||||
do_interrupt(env);
|
||||
|
@ -664,6 +673,7 @@ int cpu_exec(CPUState *env1)
|
|||
env->eflags = env->eflags | helper_cc_compute_all(CC_OP) | (DF & DF_MASK);
|
||||
#elif defined(TARGET_ARM)
|
||||
/* XXX: Save/restore host fpu exception state?. */
|
||||
#elif defined(TARGET_UNICORE32)
|
||||
#elif defined(TARGET_SPARC)
|
||||
#elif defined(TARGET_PPC)
|
||||
#elif defined(TARGET_LM32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue