After load elf64 binary, qemu tilegx can finish executing the first system call (uname) successfully in _dl_discover_osversion(), and return to __libc_start_main().
Chen Gang (6): target-tilegx: Firstly add TILE-Gx with minimized features linux-user: tilegx: Firstly add architecture related features linux-user: tilegx: Add target features support within qemu linux-user: Support tilegx architecture in syscall linux-user: Support tilegx architecture in linux-user linux-user/syscall.c: conditionalize syscalls which are not defined in tilegx configure | 3 + default-configs/tilegx-linux-user.mak | 1 + include/elf.h | 2 + linux-user/elfload.c | 23 + linux-user/main.c | 86 ++ linux-user/syscall.c | 50 +- linux-user/syscall_defs.h | 38 +- linux-user/tilegx/syscall.h | 80 ++ linux-user/tilegx/syscall_nr.h | 278 ++++++ linux-user/tilegx/target_cpu.h | 35 + linux-user/tilegx/target_signal.h | 28 + linux-user/tilegx/target_structs.h | 48 + linux-user/tilegx/termbits.h | 285 ++++++ target-tilegx/Makefile.objs | 1 + target-tilegx/cpu-qom.h | 73 ++ target-tilegx/cpu.c | 149 +++ target-tilegx/cpu.h | 94 ++ target-tilegx/helper.c | 31 + target-tilegx/helper.h | 1 + target-tilegx/opcode_tilegx.h | 1406 ++++++++++++++++++++++++++ target-tilegx/translate.c | 1735 +++++++++++++++++++++++++++++++++ 21 files changed, 4442 insertions(+), 5 deletions(-) create mode 100644 default-configs/tilegx-linux-user.mak create mode 100644 linux-user/tilegx/syscall.h create mode 100644 linux-user/tilegx/syscall_nr.h create mode 100644 linux-user/tilegx/target_cpu.h create mode 100644 linux-user/tilegx/target_signal.h create mode 100644 linux-user/tilegx/target_structs.h create mode 100644 linux-user/tilegx/termbits.h create mode 100644 target-tilegx/Makefile.objs create mode 100644 target-tilegx/cpu-qom.h create mode 100644 target-tilegx/cpu.c create mode 100644 target-tilegx/cpu.h create mode 100644 target-tilegx/helper.c create mode 100644 target-tilegx/helper.h create mode 100644 target-tilegx/opcode_tilegx.h create mode 100644 target-tilegx/translate.c -- 1.9.3