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