Cleanup a few 601 ifdefs.

This commit is contained in:
matt 2008-02-07 01:17:51 +00:00
parent 48751dd9ca
commit 809c851d23

View File

@ -1,4 +1,4 @@
/* $NetBSD: oea_machdep.c,v 1.41 2008/02/06 03:15:06 garbled Exp $ */ /* $NetBSD: oea_machdep.c,v 1.42 2008/02/07 01:17:51 matt Exp $ */
/* /*
* Copyright (C) 2002 Matt Thomas * Copyright (C) 2002 Matt Thomas
@ -33,7 +33,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.41 2008/02/06 03:15:06 garbled Exp $"); __KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.42 2008/02/07 01:17:51 matt Exp $");
#include "opt_ppcarch.h" #include "opt_ppcarch.h"
#include "opt_compat_netbsd.h" #include "opt_compat_netbsd.h"
@ -205,14 +205,11 @@ oea_init(void (*handler)(void))
if (cpuvers == MPC601) { if (cpuvers == MPC601) {
size = (size_t)dsi601size; size = (size_t)dsi601size;
memcpy((void *)EXC_DSI, dsi601trap, size); memcpy((void *)EXC_DSI, dsi601trap, size);
} else { break;
size = (size_t)dsisize;
memcpy((void *)EXC_DSI, dsitrap, size);
} }
#else #endif /* PPC_OEA601 */
size = (size_t)dsisize; size = (size_t)dsisize;
memcpy((void *)EXC_DSI, dsitrap, size); memcpy((void *)EXC_DSI, dsitrap, size);
#endif /* PPC_OEA601 */
break; break;
case EXC_DECR: case EXC_DECR:
size = (size_t)decrsize; size = (size_t)decrsize;
@ -237,12 +234,16 @@ oea_init(void (*handler)(void))
break; break;
#if defined(DDB) || defined(IPKDB) || defined(KGDB) #if defined(DDB) || defined(IPKDB) || defined(KGDB)
case EXC_RUNMODETRC: case EXC_RUNMODETRC:
#ifdef PPC_OEA601
if (cpuvers != MPC601) { if (cpuvers != MPC601) {
#endif
size = (size_t)trapsize; size = (size_t)trapsize;
memcpy((void *)EXC_RUNMODETRC, trapcode, size); memcpy((void *)EXC_RUNMODETRC, trapcode, size);
break; break;
#ifdef PPC_OEA601
} }
/* FALLTHROUGH */ /* FALLTHROUGH */
#endif
case EXC_PGM: case EXC_PGM:
case EXC_TRC: case EXC_TRC:
case EXC_BPT: case EXC_BPT: