From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTBtt-0004Dk-O0 for qemu-devel@nongnu.org; Tue, 09 Feb 2016 12:16:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTBts-0008Gx-UA for qemu-devel@nongnu.org; Tue, 09 Feb 2016 12:16:29 -0500 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:34153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTBts-0008Gr-MA for qemu-devel@nongnu.org; Tue, 09 Feb 2016 12:16:28 -0500 Received: by mail-pf0-x244.google.com with SMTP id 71so5200487pfv.1 for ; Tue, 09 Feb 2016 09:16:28 -0800 (PST) Sender: Richard Henderson References: <1455014403-10742-1-git-send-email-rth@twiddle.net> <1455014403-10742-3-git-send-email-rth@twiddle.net> <20160209152449.GA3678@jhogan-linux.le.imgtec.org> From: Richard Henderson Message-ID: <56BA1EE5.5000004@twiddle.net> Date: Wed, 10 Feb 2016 04:16:21 +1100 MIME-Version: 1.0 In-Reply-To: <20160209152449.GA3678@jhogan-linux.le.imgtec.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 02/15] tcg-mips: Support 64-bit opcodes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: James Hogan Cc: qemu-devel@nongnu.org, aurelien@aurel32.net On 02/10/2016 02:24 AM, James Hogan wrote: > Missing op definition for mulu2_i64 > Missing op definition for muls2_i64 > /work/mips/qemu/main/tcg/tcg.c:1253: tcg fatal error > > It gets further (to the point of seg faulting - looking into it) with > this fixup: > > diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h > index 374d80374021..fa9cd4ab296a 100644 > --- a/tcg/mips/tcg-target.h > +++ b/tcg/mips/tcg-target.h > @@ -145,8 +145,8 @@ extern bool use_mips32r2_instructions; > #define TCG_TARGET_HAS_nand_i64 0 > #define TCG_TARGET_HAS_add2_i64 0 > #define TCG_TARGET_HAS_sub2_i64 0 > -#define TCG_TARGET_HAS_mulu2_i64 1 > -#define TCG_TARGET_HAS_muls2_i64 1 > +#define TCG_TARGET_HAS_mulu2_i64 (!use_mips32r6_instructions) > +#define TCG_TARGET_HAS_muls2_i64 (!use_mips32r6_instructions) Oops, yep. r~