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, 23 Mar 2015 14:41:22 +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>
---
[snip]

The code for dvinit.b and dvinit.h is not correctly calculating the overflow bit, but I can't figure out why, since the documentation of the real hardware seems to be wrong. I will take your patch for now, so the warning is gone and try to come up with a proper fix as soon as possible.

Cheers,
Bastian



reply via email to

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