Re: [Qemu-devel] [PATCH 12/12 v9] target-tilegx: Generate tcg instructions to execute to 1st system call

2015-04-22 Thread Chen Gang
On 4/22/15 05:31, Peter Maydell wrote: > On 21 April 2015 at 22:23, Chen Gang wrote: >> On 4/22/15 05:15, Peter Maydell wrote: >>> will work in place of both of the above (and does this CPU >>> really only have two kinds of compare-immediate? Some of the >>> case labels suggest not, so it would be

Re: [Qemu-devel] [PATCH 12/12 v9] target-tilegx: Generate tcg instructions to execute to 1st system call

2015-04-21 Thread Peter Maydell
On 21 April 2015 at 22:23, Chen Gang wrote: > On 4/22/15 05:15, Peter Maydell wrote: >> will work in place of both of the above (and does this CPU >> really only have two kinds of compare-immediate? Some of the >> case labels suggest not, so it would be better to just implement >> all the compare-

Re: [Qemu-devel] [PATCH 12/12 v9] target-tilegx: Generate tcg instructions to execute to 1st system call

2015-04-21 Thread Chen Gang
On 4/22/15 05:15, Peter Maydell wrote: > On 21 April 2015 at 22:01, Chen Gang wrote: >> On 4/11/15 05:28, Chen Gang wrote: >>> On 4/10/15 06:19, Peter Maydell wrote: On 27 March 2015 at 11:07, Chen Gang wrote: > +} > + > +static void gen_cmpltui(struct DisasContext *dc, > +

Re: [Qemu-devel] [PATCH 12/12 v9] target-tilegx: Generate tcg instructions to execute to 1st system call

2015-04-21 Thread Peter Maydell
On 21 April 2015 at 22:01, Chen Gang wrote: > On 4/11/15 05:28, Chen Gang wrote: >> On 4/10/15 06:19, Peter Maydell wrote: >>> On 27 March 2015 at 11:07, Chen Gang wrote: +} + +static void gen_cmpltui(struct DisasContext *dc, +uint8_t rdst, uint8_t rsrc

Re: [Qemu-devel] [PATCH 12/12 v9] target-tilegx: Generate tcg instructions to execute to 1st system call

2015-04-21 Thread Chen Gang
On 4/11/15 05:28, Chen Gang wrote: > On 4/10/15 06:19, Peter Maydell wrote: >> On 27 March 2015 at 11:07, Chen Gang wrote: >>> +} >>> + >>> +static void gen_cmpltui(struct DisasContext *dc, >>> +uint8_t rdst, uint8_t rsrc, int8_t imm8) >>> +{ >>> +qemu_log_mask(CPU_LOG_

Re: [Qemu-devel] [PATCH 12/12 v9] target-tilegx: Generate tcg instructions to execute to 1st system call

2015-04-10 Thread Chen Gang
On 4/11/15 05:56, Peter Maydell wrote: > On 10 April 2015 at 22:28, Chen Gang wrote: >> On 4/10/15 06:19, Peter Maydell wrote: >>> On 27 March 2015 at 11:07, Chen Gang wrote: +/* + * The related functional description for bfextu in isa document: + * + * uint64_t mask = 0;

Re: [Qemu-devel] [PATCH 12/12 v9] target-tilegx: Generate tcg instructions to execute to 1st system call

2015-04-10 Thread Peter Maydell
On 10 April 2015 at 22:28, Chen Gang wrote: > On 4/10/15 06:19, Peter Maydell wrote: >> On 27 March 2015 at 11:07, Chen Gang wrote: >>> +/* >>> + * The related functional description for bfextu in isa document: >>> + * >>> + * uint64_t mask = 0; >>> + * mask = (-1ULL) ^ ((-1ULL << ((BFEnd - BFSta

Re: [Qemu-devel] [PATCH 12/12 v9] target-tilegx: Generate tcg instructions to execute to 1st system call

2015-04-10 Thread Chen Gang
On 4/10/15 06:19, Peter Maydell wrote: > On 27 March 2015 at 11:07, Chen Gang wrote: [...] >> >> +static void gen_fnop(void) >> +{ >> +qemu_log_mask(CPU_LOG_TB_IN_ASM, "(f)nop\n"); > > I really don't much like mixing a fake disassembler in > with the translator. If you want a disassembler, w

[Qemu-devel] [PATCH 12/12 v9] target-tilegx: Generate tcg instructions to execute to 1st system call

2015-03-27 Thread Chen Gang
Generate related tcg instructions, and qemu tilegx can run to 1st system call (uname) successfully in _dl_discover_osversion(), and return to __libc_start_main(). Signed-off-by: Chen Gang --- target-tilegx/translate.c | 543 ++ 1 file changed, 543 ins