mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 06:27:41 -07:00
sparc merge (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1098 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
023fcb9507
commit
8d5f07fa3b
23 changed files with 492 additions and 592 deletions
|
|
@ -21,19 +21,10 @@
|
|||
|
||||
#define DEBUG_PCALL
|
||||
|
||||
#if 0
|
||||
#define raise_exception_err(a, b)\
|
||||
do {\
|
||||
fprintf(logfile, "raise_exception line=%d\n", __LINE__);\
|
||||
(raise_exception_err)(a, b);\
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
/* Sparc MMU emulation */
|
||||
int cpu_sparc_handle_mmu_fault (CPUState *env, uint32_t address, int rw,
|
||||
int is_user, int is_softmmu);
|
||||
|
||||
|
||||
/* thread support */
|
||||
|
||||
spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED;
|
||||
|
|
@ -48,15 +39,6 @@ void cpu_unlock(void)
|
|||
spin_unlock(&global_cpu_lock);
|
||||
}
|
||||
|
||||
#if 0
|
||||
void cpu_loop_exit(void)
|
||||
{
|
||||
/* NOTE: the register at this point must be saved by hand because
|
||||
longjmp restore them */
|
||||
longjmp(env->jmp_env, 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
|
||||
#define MMUSUFFIX _mmu
|
||||
|
|
@ -258,7 +240,7 @@ int cpu_sparc_handle_mmu_fault (CPUState *env, uint32_t address, int rw,
|
|||
env->mmuregs[3] |= (access_index << 5) | (error_code << 2) | 2;
|
||||
env->mmuregs[4] = address; /* Fault address register */
|
||||
|
||||
if (env->mmuregs[0] & MMU_NF) // No fault
|
||||
if (env->mmuregs[0] & MMU_NF || env->psret == 0) // No fault
|
||||
return 0;
|
||||
|
||||
env->exception_index = exception;
|
||||
|
|
@ -306,7 +288,7 @@ void do_interrupt(int intno, int is_int, int error_code,
|
|||
fprintf(logfile, "%6d: v=%02x e=%04x i=%d pc=%08x npc=%08x SP=%08x\n",
|
||||
count, intno, error_code, is_int,
|
||||
env->pc,
|
||||
env->npc, env->gregs[7]);
|
||||
env->npc, env->regwptr[6]);
|
||||
#if 0
|
||||
cpu_sparc_dump_state(env, logfile, 0);
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue