? bootfile.dump ? nvram ? ppc.core ? src/nvram Index: configure.in =================================================================== RCS file: /cvsroot/pearpc/pearpc/configure.in,v retrieving revision 1.53 diff -u -r1.53 configure.in --- configure.in 13 Apr 2005 23:49:52 -0000 1.53 +++ configure.in 17 May 2005 18:26:45 -0000 @@ -375,7 +375,7 @@ AM_CONDITIONAL(USE_UI_X11, test x$UI_DIR = xx11) dnl Checks for some functions. -AC_CHECK_FUNCS([setenv memset]) +AC_CHECK_FUNCS([setenv memset log2 exp2]) dnl Checks for header files. AC_HEADER_STDC Index: src/cpu/cpu_generic/ppc_cpu.h =================================================================== RCS file: /cvsroot/pearpc/pearpc/src/cpu/cpu_generic/ppc_cpu.h,v retrieving revision 1.6 diff -u -r1.6 ppc_cpu.h --- src/cpu/cpu_generic/ppc_cpu.h 19 Apr 2005 20:51:31 -0000 1.6 +++ src/cpu/cpu_generic/ppc_cpu.h 17 May 2005 18:26:46 -0000 @@ -34,6 +34,14 @@ #define PPC_BUS_FREQUENCY PPC_MHz(10) #define PPC_TIMEBASE_FREQUENCY (PPC_CLOCK_FREQUENCY / TB_TO_PTB_FACTOR) +#ifndef HAS_LOG2 +#define log2(x) log(x)/log(2) +#endif /* HAS_LOG2 */ + +#ifndef HAS_EXP2 +#define exp2(x) pow(2, x) +#endif /* HAS_EXP2 */ + typedef union Vector_t { uint64 d[2]; sint64 sd[2]; Index: src/cpu/cpu_jitc_x86/ppc_cpu.h =================================================================== RCS file: /cvsroot/pearpc/pearpc/src/cpu/cpu_jitc_x86/ppc_cpu.h,v retrieving revision 1.5 diff -u -r1.5 ppc_cpu.h --- src/cpu/cpu_jitc_x86/ppc_cpu.h 19 Apr 2005 20:51:31 -0000 1.5 +++ src/cpu/cpu_jitc_x86/ppc_cpu.h 17 May 2005 18:26:47 -0000 @@ -33,6 +33,26 @@ #define PPC_BUS_FREQUENCY (PPC_CLOCK_FREQUENCY/5) #define PPC_TIMEBASE_FREQUENCY (PPC_BUS_FREQUENCY/4) +#ifndef HAS_LOG2 +#define log2(x) log(x)/log(2) +#endif /* HAS_LOG2 */ + +#ifndef HAS_EXP2 +#define exp2(x) pow(2, x) +#endif /* HAS_EXP2 */ + +/* FreeBSD versions after importing gcc34 has broken offsetof() */ +#ifdef __FreeBSD__ +#include +#if __FreeBSD_version >= 502126 +#undef offsetof +#define offsetof(TYPE, MEMBER) \ + (__offsetof__ (reinterpret_cast \ + (&reinterpret_cast \ + (static_cast (0)->MEMBER)))) +#endif /* __FreeBSD_version >= 502126 */ +#endif /* __FreeBSD__ */ + typedef union Vector_t { uint64 d[2]; sint64 sd[2]; Index: src/cpu/cpu_jitc_x86/x86asm.h =================================================================== RCS file: /cvsroot/pearpc/pearpc/src/cpu/cpu_jitc_x86/x86asm.h,v retrieving revision 1.9 diff -u -r1.9 x86asm.h --- src/cpu/cpu_jitc_x86/x86asm.h 9 May 2005 00:21:53 -0000 1.9 +++ src/cpu/cpu_jitc_x86/x86asm.h 17 May 2005 18:26:49 -0000 @@ -25,6 +25,11 @@ #include "ppc_cpu.h" #include "jitc_types.h" +/* FSCAKE is also defined in FreeBSD's sys/param.h */ +#ifdef FSCALE +#undef FSCALE +#endif /* FSCALE */ + typedef byte modrm_o[8]; typedef byte *modrm_p;