提交 3b3fb322 编写于 作者: B blueswir1

Use qemu-log.h

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5413 c046a42c-6fe2-441c-8c8c-71466251a162
上级 fdb0d09d
...@@ -109,8 +109,7 @@ void cpu_loop(CPUState *env); ...@@ -109,8 +109,7 @@ void cpu_loop(CPUState *env);
void init_paths(const char *prefix); void init_paths(const char *prefix);
const char *path(const char *pathname); const char *path(const char *pathname);
extern int loglevel; #include "qemu-log.h"
extern FILE *logfile;
/* commpage.c */ /* commpage.c */
void commpage_init(void); void commpage_init(void);
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "sysemu.h" #include "sysemu.h"
#include "audio/audio.h" #include "audio/audio.h"
#include "boards.h" #include "boards.h"
#include "qemu-log.h"
//#define DEBUG_BOARD_INIT //#define DEBUG_BOARD_INIT
...@@ -59,8 +60,6 @@ ...@@ -59,8 +60,6 @@
#define MAX_IDE_BUS 2 #define MAX_IDE_BUS 2
extern FILE *logfile;
typedef struct { typedef struct {
uint32_t leds; uint32_t leds;
uint32_t brk; uint32_t brk;
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "sysemu.h" #include "sysemu.h"
#include "boards.h" #include "boards.h"
#include "flash.h" #include "flash.h"
#include "qemu-log.h"
#ifdef TARGET_WORDS_BIGENDIAN #ifdef TARGET_WORDS_BIGENDIAN
#define BIOS_FILENAME "mips_bios.bin" #define BIOS_FILENAME "mips_bios.bin"
...@@ -35,8 +36,6 @@ static const int ide_irq[2] = { 14, 15 }; ...@@ -35,8 +36,6 @@ static const int ide_irq[2] = { 14, 15 };
static int serial_io[MAX_SERIAL_PORTS] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 }; static int serial_io[MAX_SERIAL_PORTS] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
static int serial_irq[MAX_SERIAL_PORTS] = { 4, 3, 4, 3 }; static int serial_irq[MAX_SERIAL_PORTS] = { 4, 3, 4, 3 };
extern FILE *logfile;
static PITState *pit; /* PIT i8254 */ static PITState *pit; /* PIT i8254 */
/* i8254 PIT is attached to the IRQ0 at PIC i8259 */ /* i8254 PIT is attached to the IRQ0 at PIC i8259 */
......
...@@ -26,13 +26,11 @@ ...@@ -26,13 +26,11 @@
#include "qemu-timer.h" #include "qemu-timer.h"
#include "sysemu.h" #include "sysemu.h"
#include "nvram.h" #include "nvram.h"
#include "qemu-log.h"
//#define PPC_DEBUG_IRQ //#define PPC_DEBUG_IRQ
//#define PPC_DEBUG_TB //#define PPC_DEBUG_TB
extern FILE *logfile;
extern int loglevel;
static void cpu_ppc_tb_stop (CPUState *env); static void cpu_ppc_tb_stop (CPUState *env);
static void cpu_ppc_tb_start (CPUState *env); static void cpu_ppc_tb_start (CPUState *env);
......
...@@ -29,9 +29,7 @@ ...@@ -29,9 +29,7 @@
#include "sysemu.h" #include "sysemu.h"
#include "block.h" #include "block.h"
#include "boards.h" #include "boards.h"
#include "qemu-log.h"
extern int loglevel;
extern FILE *logfile;
#define BIOS_FILENAME "ppc405_rom.bin" #define BIOS_FILENAME "ppc405_rom.bin"
#undef BIOS_SIZE #undef BIOS_SIZE
......
...@@ -27,9 +27,7 @@ ...@@ -27,9 +27,7 @@
#include "pc.h" #include "pc.h"
#include "qemu-timer.h" #include "qemu-timer.h"
#include "sysemu.h" #include "sysemu.h"
#include "qemu-log.h"
extern int loglevel;
extern FILE *logfile;
#define DEBUG_OPBA #define DEBUG_OPBA
#define DEBUG_SDRAM #define DEBUG_SDRAM
......
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
#include "ppc.h" #include "ppc.h"
#include "ppc4xx.h" #include "ppc4xx.h"
#include "sysemu.h" #include "sysemu.h"
#include "qemu-log.h"
extern int loglevel;
extern FILE *logfile;
//#define DEBUG_MMIO //#define DEBUG_MMIO
//#define DEBUG_UNASSIGNED //#define DEBUG_UNASSIGNED
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "pci.h" #include "pci.h"
#include "ppc.h" #include "ppc.h"
#include "boards.h" #include "boards.h"
#include "qemu-log.h"
//#define HARD_DEBUG_PPC_IO //#define HARD_DEBUG_PPC_IO
//#define DEBUG_PPC_IO //#define DEBUG_PPC_IO
...@@ -44,9 +45,6 @@ ...@@ -44,9 +45,6 @@
#define KERNEL_LOAD_ADDR 0x01000000 #define KERNEL_LOAD_ADDR 0x01000000
#define INITRD_LOAD_ADDR 0x01800000 #define INITRD_LOAD_ADDR 0x01800000
extern int loglevel;
extern FILE *logfile;
#if defined (HARD_DEBUG_PPC_IO) && !defined (DEBUG_PPC_IO) #if defined (HARD_DEBUG_PPC_IO) && !defined (DEBUG_PPC_IO)
#define DEBUG_PPC_IO #define DEBUG_PPC_IO
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册