[Qemu-devel] [PATCH 02/10 v12] linux-user: Support tilegx architecture in linux-user

2015-06-13 Thread Chen Gang
Add main working flow feature, system call processing feature, and elf64 tilegx binary loading feature, based on Linux kernel tilegx 64-bit implementation. Signed-off-by: Chen Gang --- include/elf.h | 2 + linux-user/elfload.c | 23 linux-user/main.c | 295 ++

Re: [Qemu-devel] [PATCH 02/10 v12] linux-user: Support tilegx architecture in linux-user

2015-07-19 Thread Chen Gang
On 6/13/15 21:10, Chen Gang wrote: > + > +void cpu_loop(CPUTLGState *env) > +{ > +CPUState *cs = CPU(tilegx_env_get_cpu(env)); > +int trapnr; > + > +while (1) { > +cpu_exec_start(cs); > +trapnr = cpu_tilegx_exec(env); > +cpu_exec_end(cs); > +switch (trapn

Re: [Qemu-devel] [PATCH 02/10 v12] linux-user: Support tilegx architecture in linux-user

2015-07-19 Thread Chen Gang
On 7/19/15 19:31, Chen Gang wrote: > On 6/13/15 21:10, Chen Gang wrote: >> + >> +void cpu_loop(CPUTLGState *env) >> +{ >> +CPUState *cs = CPU(tilegx_env_get_cpu(env)); >> +int trapnr; >> + >> +while (1) { >> +cpu_exec_start(cs); >> +trapnr = cpu_tilegx_exec(env); >> +