From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUzN1-0003xv-Di for qemu-devel@nongnu.org; Mon, 09 Mar 2015 11:13:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUzMv-0000D9-6i for qemu-devel@nongnu.org; Mon, 09 Mar 2015 11:13:27 -0400 Received: from mail.uni-paderborn.de ([131.234.142.9]:40376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUzMv-0000Cx-0l for qemu-devel@nongnu.org; Mon, 09 Mar 2015 11:13:21 -0400 Message-ID: <54FDC6FB.9030800@mail.uni-paderborn.de> Date: Mon, 09 Mar 2015 16:14:51 +0000 From: Bastian Koppelmann MIME-Version: 1.0 References: <1425739412-8144-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1425739412-8144-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] target-tricore: Fix two helper functions (clang warnings) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , QEMU Developer Cc: Peter Maydell Hi Stefan, On 03/07/2015 02:43 PM, Stefan Weil wrote: > clang report: > > target-tricore/op_helper.c:1247:24: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > target-tricore/op_helper.c:1248:25: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > target-tricore/op_helper.c:1249:19: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > target-tricore/op_helper.c:1297:24: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > target-tricore/op_helper.c:1298:25: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > target-tricore/op_helper.c:1299:19: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > > Fix also the divisor which was taken from the wrong register > (thanks to Peter Maydell for this hint). > > Cc: Bastian Koppelmann > Signed-off-by: Stefan Weil > --- > > v2 adds the fix for the wrong register. > > Stefan Thanks for the patch. It looks good to me so far. However I would like to test it on real hardware, to which I don't have access right now and might take about a week. Cheers, Bastian