int default_cpu_clock = 123;
void *gp2x_memregs = NULL;
+/* ifndef is for qemu build without video out */
+#ifndef ARM
+
/* faking GP2X pad */
enum { GP2X_UP=0x1, GP2X_LEFT=0x4, GP2X_DOWN=0x10, GP2X_RIGHT=0x40,
GP2X_START=1<<8, GP2X_SELECT=1<<9, GP2X_L=1<<10, GP2X_R=1<<11,
sem_wait(&xlib_sem);
sem_destroy(&xlib_sem);
}
+#endif // !ARM
/* --- */
/* gp2x/emu.c stuff, most to be rm'd */
static void gp2x_video_flip_(void)
{
+#ifndef ARM
unsigned int *image;
int pixel_count, i;
realloc_screen();
ximage_realloc(xlib_display, DefaultVisual(xlib_display, 0));
}
+#endif
}
static void gp2x_video_changemode_ll_(int bpp)
void plat_validate_config(void)
{
+ extern int PicoOpt;
// PicoOpt &= ~POPT_EXT_FM;
+ PicoOpt &= ~(1<<17); // POPT_EN_SVP_DRC
}
void plat_early_init(void)
// snd
sndout_oss_init();
+#ifndef ARM
xlib_init();
+#endif
}
void plat_finish(void)
{
}
+void cache_flush_d_inval_i()
+{
+}
+
/* lprintf */
void lprintf(const char *fmt, ...)
{