From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHo28-0007Ek-7d for qemu-devel@nongnu.org; Wed, 31 Oct 2018 06:47:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHo1q-00062R-H4 for qemu-devel@nongnu.org; Wed, 31 Oct 2018 06:47:23 -0400 Received: from mail.uni-paderborn.de ([131.234.142.9]:56122) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gHo1p-00061i-Qd for qemu-devel@nongnu.org; Wed, 31 Oct 2018 06:47:14 -0400 From: Bastian Koppelmann References: <20181020071451.27808-1-kbastian@mail.uni-paderborn.de> <20181020071451.27808-14-kbastian@mail.uni-paderborn.de> <53959ab8-6039-2c43-ccb0-8aafba74820c@mail.uni-paderborn.de> Message-ID: <48ba0ce1-e312-b6c1-1043-493492f764bb@mail.uni-paderborn.de> Date: Wed, 31 Oct 2018 11:47:12 +0100 MIME-Version: 1.0 In-Reply-To: <53959ab8-6039-2c43-ccb0-8aafba74820c@mail.uni-paderborn.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US-large Subject: Re: [Qemu-devel] [PATCH v2 13/29] target/riscv: Convert RV32D insns to decodetree List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mjc@sifive.com, sagark@eecs.berkeley.edu, palmer@sifive.com Cc: richard.henderson@linaro.org, peer.adelt@hni.uni-paderborn.de, Alistair.Francis@wdc.com, qemu-devel@nongnu.org On 10/31/18 11:44 AM, Bastian Koppelmann wrote: > > On 10/20/18 9:14 AM, Bastian Koppelmann wrote: > [...] >> +static bool trans_fclass_d(DisasContext *ctx, arg_fclass_d *a, >> uint32_t insn) >> +{ >> +#if defined(TARGET_RISCV64) >> +    REQUIRE_FPU; >> + >> +    TCGv t0 = tcg_temp_new(); >> +    gen_helper_fclass_d(t0, cpu_fpr[a->rs1]); >> +    gen_set_gpr(a->rd, t0); >> +    tcg_temp_free(t0); >> +#else >> +    gen_exception_illegal(ctx); >> +#endif >> +    return true; >> +} > > > I'm a bit confused here. According to the spec fclass_d is a RV32F > instruction but according to the original qemu code it is not? I meant RV32D, of course...