qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] target-tricore: Fix two helper functions (cl


From: Bastian Koppelmann
Subject: Re: [Qemu-devel] [PATCH v2] target-tricore: Fix two helper functions (clang warnings)
Date: Mon, 09 Mar 2015 16:14:51 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

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 <address@hidden>
Signed-off-by: Stefan Weil <address@hidden>
---

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]