From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7SnC-0002kW-Bx for qemu-devel@nongnu.org; Thu, 08 Aug 2013 12:10:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7Sn7-0000OR-V5 for qemu-devel@nongnu.org; Thu, 08 Aug 2013 12:10:26 -0400 Received: from mail-qe0-x233.google.com ([2607:f8b0:400d:c02::233]:37575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7Sn7-0000Ni-Rn for qemu-devel@nongnu.org; Thu, 08 Aug 2013 12:10:21 -0400 Received: by mail-qe0-f51.google.com with SMTP id nd7so1782601qeb.38 for ; Thu, 08 Aug 2013 09:10:21 -0700 (PDT) Sender: Richard Henderson Message-ID: <5203C2E8.3060700@twiddle.net> Date: Thu, 08 Aug 2013 06:10:16 -1000 From: Richard Henderson MIME-Version: 1.0 References: <1375972823-25333-1-git-send-email-james.hogan@imgtec.com> In-Reply-To: <1375972823-25333-1-git-send-email-james.hogan@imgtec.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] tcg/mips: fix invalid op definition errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: James Hogan Cc: qemu-devel@nongnu.org, Aurelien Jarno On 08/08/2013 04:40 AM, James Hogan wrote: > tcg/mips/tcg-target.h defines various operations conditionally depending > upon the isa revision, however these operations are included in > mips_op_defs[] unconditionally resulting in the following runtime errors > if CONFIG_DEBUG_TCG is defined: > > Invalid op definition for movcond_i32 > Invalid op definition for rotl_i32 > Invalid op definition for rotr_i32 > Invalid op definition for deposit_i32 > Invalid op definition for bswap16_i32 > Invalid op definition for bswap32_i32 > tcg/tcg.c:1196: tcg fatal error > > Fix with ifdefs like the i386 backend does for movcond_i32. > > Signed-off-by: James Hogan > Cc: Aurelien Jarno > Cc: Richard Henderson Reviewed-by: Richard Henderson Perfect for 1.6. For 1.7 it would be really nice if you could figure out some way to make these runtime tests, instead of ifdefs. I'd have said getauxval(3), but the mips kernel doesn't seem to define any identifying bits. Perhaps that's the first thing that ought to get fixed... r~