mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
PowerPC system emulation fixes (Jocelyn Mayer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@722 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
df475d18d8
commit
a541f297a3
24 changed files with 1525 additions and 865 deletions
|
@ -94,15 +94,15 @@ int cpu_inl(CPUState *env, int addr)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef TARGET_I386
|
||||
/***********************************************************/
|
||||
/* CPUX86 core interface */
|
||||
|
||||
int cpu_x86_get_pic_interrupt(CPUState *env)
|
||||
int cpu_get_pic_interrupt(CPUState *env)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef TARGET_I386
|
||||
/***********************************************************/
|
||||
/* CPUX86 core interface */
|
||||
|
||||
static void write_dt(void *ptr, unsigned long addr, unsigned long limit,
|
||||
int flags)
|
||||
{
|
||||
|
@ -441,7 +441,6 @@ void cpu_loop (CPUSPARCState *env)
|
|||
#endif
|
||||
|
||||
#ifdef TARGET_PPC
|
||||
|
||||
void cpu_loop(CPUPPCState *env)
|
||||
{
|
||||
target_siginfo_t info;
|
||||
|
@ -769,6 +768,8 @@ void cpu_loop(CPUPPCState *env)
|
|||
case EXCP_INTERRUPT:
|
||||
/* Don't know why this should ever happen... */
|
||||
break;
|
||||
case EXCP_DEBUG:
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n",
|
||||
trapnr);
|
||||
|
|
|
@ -2475,6 +2475,7 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
|
|||
}
|
||||
#endif
|
||||
break;
|
||||
#ifdef TARGET_NR_getdents64
|
||||
case TARGET_NR_getdents64:
|
||||
{
|
||||
struct dirent64 *dirp = (void *)arg2;
|
||||
|
@ -2498,6 +2499,7 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
|
|||
}
|
||||
}
|
||||
break;
|
||||
#endif /* TARGET_NR_getdents64 */
|
||||
case TARGET_NR__newselect:
|
||||
ret = do_select(arg1, (void *)arg2, (void *)arg3, (void *)arg4,
|
||||
(void *)arg5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue