From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XY3K4-0002Uv-GW for qemu-devel@nongnu.org; Sat, 27 Sep 2014 21:30:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XY3Jv-0006UB-Ej for qemu-devel@nongnu.org; Sat, 27 Sep 2014 21:30:48 -0400 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:41042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XY3Jv-0006Tj-0w for qemu-devel@nongnu.org; Sat, 27 Sep 2014 21:30:39 -0400 Received: by mail-pa0-f47.google.com with SMTP id rd3so4874711pab.20 for ; Sat, 27 Sep 2014 18:30:32 -0700 (PDT) Sender: Richard Henderson Message-ID: <542764B3.2040000@twiddle.net> Date: Sat, 27 Sep 2014 18:30:27 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1411829891-24866-1-git-send-email-kbastian@mail.uni-paderborn.de> <1411829891-24866-3-git-send-email-kbastian@mail.uni-paderborn.de> In-Reply-To: <1411829891-24866-3-git-send-email-kbastian@mail.uni-paderborn.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/5] target-tricore: Add instructions of ABS, ABSB opcode format List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bastian Koppelmann , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org On 09/27/2014 07:58 AM, Bastian Koppelmann wrote: + env->gpr_a[2] = cpu_ldl_data(env, ea+8); > + env->gpr_a[3] = cpu_ldl_data(env, ea+12); > + env->gpr_d[0] = cpu_ldl_data(env, ea+16); > + env->gpr_d[1] = cpu_ldl_data(env, ea+20); > + env->gpr_d[2] = cpu_ldl_data(env, ea+24); Watch the extra spaces. > +static void gen_ld_2regs_64(TCGv rh, TCGv rl, TCGv address, DisasContext *ctx) > +{ > + TCGv_i64 temp = tcg_temp_new_i64(); > + > + tcg_gen_qemu_ld_i64(temp, address, ctx->mem_idx, MO_LEQ); > + /* write back to two 32 bit regs */ > + tcg_gen_trunc_i64_i32(rl, temp); > + tcg_gen_shri_i64(temp, temp, 32); > + tcg_gen_trunc_i64_i32(rh, temp); tcg_gen_extr_i64_i32(rl, rh, temp) > +/* ABSB-format */ > + case OPC1_32_ABSB_ST_T: > + address = MASK_OP_ABS_OFF18(ctx->opcode); > + int8_t b = MASK_OP_ABSB_B(ctx->opcode); > + int32_t bpos = MASK_OP_ABSB_BPOS(ctx->opcode); You're not supposed to be relying on c99 mixed code and declarations. r~