From: Randolph C. <ta...@us...> - 2007-03-06 14:41:54
|
Update of /cvsroot/hppaqemu/hppaqemu/linux-user In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv8436/linux-user Modified Files: elfload.c main.c mmap.c Log Message: fill in cpu_loop so that it will start running code fill in gen_intermediate_code to fill in translation blocks add link script to link qemu-hppa properly turn on hppa in_asm decoding Index: main.c =================================================================== RCS file: /cvsroot/hppaqemu/hppaqemu/linux-user/main.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.c 4 Mar 2007 23:19:41 -0000 1.2 --- main.c 6 Mar 2007 14:41:50 -0000 1.3 *************** *** 1533,1538 **** --- 1533,1551 ---- void cpu_loop(CPUHPPAState *env) { + int trapnr; + target_siginfo_t info; + for (;;) { + trapnr = cpu_hppa_exec(env); + switch (trapnr) + { + default: + fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n", + trapnr); + cpu_dump_state(env, stderr, fprintf, 0); + abort(); + } + process_pending_signals(env); } } Index: mmap.c =================================================================== RCS file: /cvsroot/hppaqemu/hppaqemu/linux-user/mmap.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** mmap.c 23 Feb 2007 21:44:25 -0000 1.1.1.1 --- mmap.c 6 Mar 2007 14:41:50 -0000 1.2 *************** *** 158,162 **** long host_start; #if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) || \ ! defined(__ia64) static target_ulong last_start = 0x40000000; #elif defined(__CYGWIN__) --- 158,162 ---- long host_start; #if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) || \ ! defined(__ia64) || defined(__hppa__) static target_ulong last_start = 0x40000000; #elif defined(__CYGWIN__) *************** *** 203,207 **** if (!(flags & MAP_FIXED)) { #if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) || \ ! defined(__ia64) || defined(__CYGWIN__) /* tell the kenel to search at the same place as i386 */ if (real_start == 0) { --- 203,207 ---- if (!(flags & MAP_FIXED)) { #if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) || \ ! defined(__ia64) || defined(__CYGWIN__) || defined(__hppa__) /* tell the kenel to search at the same place as i386 */ if (real_start == 0) { Index: elfload.c =================================================================== RCS file: /cvsroot/hppaqemu/hppaqemu/linux-user/elfload.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** elfload.c 4 Mar 2007 23:19:40 -0000 1.2 --- elfload.c 6 Mar 2007 14:41:50 -0000 1.3 *************** *** 316,320 **** #ifdef TARGET_HPPA ! #define ELF_START_MMAP 0x40000000 #define elf_check_arch(x) ( (x) == EM_PARISC ) --- 316,320 ---- #ifdef TARGET_HPPA ! #define ELF_START_MMAP 0x80000000 #define elf_check_arch(x) ( (x) == EM_PARISC ) |