void init_paths(const char *prefix);
const char *path(const char *pathname);
-extern int loglevel;
-extern FILE *logfile;
+#include "qemu-log.h"
/* commpage.c */
void commpage_init(void);
#include "sysemu.h"
#include "audio/audio.h"
#include "boards.h"
+#include "qemu-log.h"
//#define DEBUG_BOARD_INIT
#define MAX_IDE_BUS 2
-extern FILE *logfile;
-
typedef struct {
uint32_t leds;
uint32_t brk;
#include "sysemu.h"
#include "boards.h"
#include "flash.h"
+#include "qemu-log.h"
#ifdef TARGET_WORDS_BIGENDIAN
#define BIOS_FILENAME "mips_bios.bin"
static int serial_io[MAX_SERIAL_PORTS] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
static int serial_irq[MAX_SERIAL_PORTS] = { 4, 3, 4, 3 };
-extern FILE *logfile;
-
static PITState *pit; /* PIT i8254 */
/* i8254 PIT is attached to the IRQ0 at PIC i8259 */
#include "qemu-timer.h"
#include "sysemu.h"
#include "nvram.h"
+#include "qemu-log.h"
//#define PPC_DEBUG_IRQ
//#define PPC_DEBUG_TB
-extern FILE *logfile;
-extern int loglevel;
-
static void cpu_ppc_tb_stop (CPUState *env);
static void cpu_ppc_tb_start (CPUState *env);
#include "sysemu.h"
#include "block.h"
#include "boards.h"
-
-extern int loglevel;
-extern FILE *logfile;
+#include "qemu-log.h"
#define BIOS_FILENAME "ppc405_rom.bin"
#undef BIOS_SIZE
#include "pc.h"
#include "qemu-timer.h"
#include "sysemu.h"
-
-extern int loglevel;
-extern FILE *logfile;
+#include "qemu-log.h"
#define DEBUG_OPBA
#define DEBUG_SDRAM
#include "ppc.h"
#include "ppc4xx.h"
#include "sysemu.h"
-
-extern int loglevel;
-extern FILE *logfile;
+#include "qemu-log.h"
//#define DEBUG_MMIO
//#define DEBUG_UNASSIGNED
#include "pci.h"
#include "ppc.h"
#include "boards.h"
+#include "qemu-log.h"
//#define HARD_DEBUG_PPC_IO
//#define DEBUG_PPC_IO
#define KERNEL_LOAD_ADDR 0x01000000
#define INITRD_LOAD_ADDR 0x01800000
-extern int loglevel;
-extern FILE *logfile;
-
#if defined (HARD_DEBUG_PPC_IO) && !defined (DEBUG_PPC_IO)
#define DEBUG_PPC_IO
#endif