Re: [Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-06-01 Thread Chen Gang
On 5/27/15 05:39, Chen Gang wrote: On 5/12/15 05:26, Chen Gang wrote: +} + +/* + * Functional Description + * + *uint64_t output = 0; + *uint32_t counter; + *for (counter = 0; counter (WORD_SIZE / 32); counter++) + *{ + *bool asel = ((counter

Re: [Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-05-29 Thread Chen Gang
On 5/12/15 00:55, Richard Henderson wrote: +static void gen_v1cmpeqi(struct DisasContext *dc, + uint8_t rdst, uint8_t rsrc, uint8_t imm8) +{ +int count; +TCGv vdst = dest_gr(dc, rdst); +TCGv tmp = tcg_temp_new_i64(); + +

Re: [Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-05-26 Thread Chen Gang
On 5/12/15 05:26, Chen Gang wrote: +} + +/* + * Functional Description + * + *uint64_t output = 0; + *uint32_t counter; + *for (counter = 0; counter (WORD_SIZE / 32); counter++) + *{ + *bool asel = ((counter 1) == 1); + *

Re: [Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-05-14 Thread Chen Gang
On 5/12/15 00:55, Richard Henderson wrote: On 05/10/2015 03:45 PM, Chen Gang wrote: +static void gen_cmpltsi(struct DisasContext *dc, +uint8_t rdst, uint8_t rsrc, int8_t imm8) +{ +qemu_log_mask(CPU_LOG_TB_IN_ASM, cmpltsi r%d, r%d, %d\n, +

Re: [Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-05-14 Thread Chen Gang
On 5/12/15 00:55, Richard Henderson wrote: On 05/10/2015 03:45 PM, Chen Gang wrote: +static void gen_cmpltsi(struct DisasContext *dc, +uint8_t rdst, uint8_t rsrc, int8_t imm8) +{ +qemu_log_mask(CPU_LOG_TB_IN_ASM, cmpltsi r%d, r%d, %d\n, +

Re: [Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-05-14 Thread Chen Gang
On 5/12/15 00:55, Richard Henderson wrote: On 05/10/2015 03:45 PM, Chen Gang wrote: +static void gen_cmpltsi(struct DisasContext *dc, +uint8_t rdst, uint8_t rsrc, int8_t imm8) +{ +qemu_log_mask(CPU_LOG_TB_IN_ASM, cmpltsi r%d, r%d, %d\n, +

Re: [Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-05-14 Thread Chen Gang
On 5/12/15 00:55, Richard Henderson wrote: On 05/10/2015 03:45 PM, Chen Gang wrote: +static void gen_cmpltsi(struct DisasContext *dc, +uint8_t rdst, uint8_t rsrc, int8_t imm8) +{ +qemu_log_mask(CPU_LOG_TB_IN_ASM, cmpltsi r%d, r%d, %d\n, + rdst,

Re: [Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-05-11 Thread Chen Gang
Firstly, thank you very much for your response quickly! On 5/12/15 00:55, Richard Henderson wrote: On 05/10/2015 03:45 PM, Chen Gang wrote: +static void gen_cmpltsi(struct DisasContext *dc, +uint8_t rdst, uint8_t rsrc, int8_t imm8) +{ +

Re: [Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-05-11 Thread Richard Henderson
On 05/10/2015 03:45 PM, Chen Gang wrote: +static void gen_cmpltsi(struct DisasContext *dc, +uint8_t rdst, uint8_t rsrc, int8_t imm8) +{ +qemu_log_mask(CPU_LOG_TB_IN_ASM, cmpltsi r%d, r%d, %d\n, + rdst, rsrc, imm8); +

[Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-05-10 Thread Chen Gang
Generate related tcg instructions, and qemu tilegx runs to _init_malloc, but causes assert in _init_malloc. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- target-tilegx/translate.c | 2889 + 1 file changed, 2889 insertions(+) create mode 100644