Commit 4c65c3aeb7a9e6e8297fb62d18b457a807ab0b20

Authored by Grzegorz Jabłoński
1 parent 4edc0201

Make a working qemu-system-arm

Makefile.target
... ... @@ -4,8 +4,9 @@ include $(SRC_PATH)/rules.mak
4 4 TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
5 5 VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw
6 6 CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H
7   -#CFLAGS+=-Werror
8   -LIBS=
  7 +CFLAGS+=
  8 +LIBS= -lrt
  9 +LDFLAGS+=
9 10  
10 11 ifdef CONFIG_USER_ONLY
11 12 # user emulator name
... ...
configme.sh 0 → 100755
  1 +./configure --disable-linux-user --target-list=arm-softmmu --disable-werror
... ...
... ... @@ -401,11 +401,11 @@ static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr,
401 401  
402 402 #define DEFAULT_CODE_GEN_BUFFER_SIZE (32 * 1024 * 1024)
403 403  
404   -#if defined(CONFIG_USER_ONLY)
  404 +//#if defined(CONFIG_USER_ONLY)
405 405 /* Currently it is not recommended to allocate big chunks of data in
406 406 user mode. It will change when a dedicated libc will be used */
407 407 #define USE_STATIC_CODE_GEN_BUFFER
408   -#endif
  408 +//#endif
409 409  
410 410 #ifdef USE_STATIC_CODE_GEN_BUFFER
411 411 static uint8_t static_code_gen_buffer[DEFAULT_CODE_GEN_BUFFER_SIZE];
... ...
hw/at91_lcdc.c
... ... @@ -32,7 +32,7 @@ typedef struct LCDCState {
32 32 uint32_t dmabaddr1;
33 33 } LCDCState;
34 34  
35   -#define AT91_LCDC_DEBUG
  35 +//#define AT91_LCDC_DEBUG
36 36 #ifdef AT91_LCDC_DEBUG
37 37 #define DPRINTF(fmt, ...) \
38 38 do { \
... ...
hw/at91_pio.c
... ... @@ -170,6 +170,8 @@ static void at91_pio_mem_write(void *opaque, target_phys_addr_t offset,
170 170 PIOState *s = opaque;
171 171 int i;
172 172  
  173 + printf("Writing PIO: offset=0x%8lx, value=0x%8x\n",offset,value);
  174 +
173 175 offset &= PIO_SIZE - 1;
174 176 switch (offset) {
175 177 case PIO_PER:
... ...