Re: [Qemu-devel] [PATCH 08/10] target-tricore: add FCALL instructions of the v1.6 ISA

2015-05-22 Thread Bastian Koppelmann
On 05/21/2015 07:28 PM, Richard Henderson wrote: On 05/13/2015 02:45 AM, Bastian Koppelmann wrote: +static void gen_fcall_save_ctx(DisasContext *ctx) +{ +tcg_gen_addi_tl(cpu_gpr_a[10], cpu_gpr_a[10], -4); +tcg_gen_qemu_st_tl(cpu_gpr_a[11], cpu_gpr_a[10], ctx->mem_idx, MO_LESL); +tc

Re: [Qemu-devel] [PATCH 08/10] target-tricore: add FCALL instructions of the v1.6 ISA

2015-05-21 Thread Richard Henderson
On 05/13/2015 02:45 AM, Bastian Koppelmann wrote: > +static void gen_fcall_save_ctx(DisasContext *ctx) > +{ > +tcg_gen_addi_tl(cpu_gpr_a[10], cpu_gpr_a[10], -4); > +tcg_gen_qemu_st_tl(cpu_gpr_a[11], cpu_gpr_a[10], ctx->mem_idx, MO_LESL); > +tcg_gen_movi_tl(cpu_gpr_a[11], ctx->next_pc);

[Qemu-devel] [PATCH 08/10] target-tricore: add FCALL instructions of the v1.6 ISA

2015-05-13 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann --- target-tricore/translate.c | 21 + target-tricore/tricore-opcodes.h | 3 +++ 2 files changed, 24 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/translate.c index 4aea0c6..545cc06 100644 --- a/target-tricore/