* [PATCH] target/hexagon: fix = vs. == mishap
@ 2023-04-27 12:56 Paolo Bonzini
2023-04-27 13:32 ` Richard Henderson
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Paolo Bonzini @ 2023-04-27 12:56 UTC (permalink / raw)
To: qemu-devel; +Cc: Taylor Simpson
Coverity reports a parameter that is "set but never used". This is caused
by an assignment operator being used instead of equality.
Cc: Taylor Simpson <tsimpson@quicinc.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
target/hexagon/idef-parser/parser-helpers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/hexagon/idef-parser/parser-helpers.c b/target/hexagon/idef-parser/parser-helpers.c
index 86511efb62b9..0a01ec39b75e 100644
--- a/target/hexagon/idef-parser/parser-helpers.c
+++ b/target/hexagon/idef-parser/parser-helpers.c
@@ -1123,7 +1123,7 @@ HexValue gen_extend_op(Context *c,
HexValue *value,
HexSignedness signedness)
{
- unsigned bit_width = (dst_width = 64) ? 64 : 32;
+ unsigned bit_width = (dst_width == 64) ? 64 : 32;
HexValue value_m = *value;
HexValue src_width_m = *src_width;
--
2.40.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] target/hexagon: fix = vs. == mishap
2023-04-27 12:56 [PATCH] target/hexagon: fix = vs. == mishap Paolo Bonzini
@ 2023-04-27 13:32 ` Richard Henderson
2023-04-27 23:04 ` Taylor Simpson
2023-04-27 15:27 ` Taylor Simpson
2023-04-27 16:21 ` Anton Johansson via
2 siblings, 1 reply; 6+ messages in thread
From: Richard Henderson @ 2023-04-27 13:32 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel; +Cc: Taylor Simpson
On 4/27/23 13:56, Paolo Bonzini wrote:
> Coverity reports a parameter that is "set but never used". This is caused
> by an assignment operator being used instead of equality.
>
> Cc: Taylor Simpson<tsimpson@quicinc.com>
> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
> ---
> target/hexagon/idef-parser/parser-helpers.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] target/hexagon: fix = vs. == mishap
2023-04-27 12:56 [PATCH] target/hexagon: fix = vs. == mishap Paolo Bonzini
2023-04-27 13:32 ` Richard Henderson
@ 2023-04-27 15:27 ` Taylor Simpson
2023-04-27 16:21 ` Anton Johansson via
2 siblings, 0 replies; 6+ messages in thread
From: Taylor Simpson @ 2023-04-27 15:27 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel@nongnu.org
Cc: Alessandro Di Federico, Anton Johansson
> -----Original Message-----
> From: Paolo Bonzini <pbonzini@redhat.com>
> Sent: Thursday, April 27, 2023 7:57 AM
> To: qemu-devel@nongnu.org
> Cc: Taylor Simpson <tsimpson@quicinc.com>
> Subject: [PATCH] target/hexagon: fix = vs. == mishap
>
> WARNING: This email originated from outside of Qualcomm. Please be wary
> of any links or attachments, and do not enable macros.
>
> Coverity reports a parameter that is "set but never used". This is caused by
> an assignment operator being used instead of equality.
>
> Cc: Taylor Simpson <tsimpson@quicinc.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> target/hexagon/idef-parser/parser-helpers.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/hexagon/idef-parser/parser-helpers.c
> b/target/hexagon/idef-parser/parser-helpers.c
> index 86511efb62b9..0a01ec39b75e 100644
> --- a/target/hexagon/idef-parser/parser-helpers.c
> +++ b/target/hexagon/idef-parser/parser-helpers.c
> @@ -1123,7 +1123,7 @@ HexValue gen_extend_op(Context *c,
> HexValue *value,
> HexSignedness signedness) {
> - unsigned bit_width = (dst_width = 64) ? 64 : 32;
> + unsigned bit_width = (dst_width == 64) ? 64 : 32;
> HexValue value_m = *value;
> HexValue src_width_m = *src_width;
Cc: Alessandro Di Federico <ale@rev.ng>
Cc: Anton Johansson <anjo@rev.ng>
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] target/hexagon: fix = vs. == mishap
2023-04-27 12:56 [PATCH] target/hexagon: fix = vs. == mishap Paolo Bonzini
2023-04-27 13:32 ` Richard Henderson
2023-04-27 15:27 ` Taylor Simpson
@ 2023-04-27 16:21 ` Anton Johansson via
2 siblings, 0 replies; 6+ messages in thread
From: Anton Johansson via @ 2023-04-27 16:21 UTC (permalink / raw)
To: qemu-devel
On 4/27/23 14:56, Paolo Bonzini wrote:
> Coverity reports a parameter that is "set but never used". This is caused
> by an assignment operator being used instead of equality.
>
> Cc: Taylor Simpson <tsimpson@quicinc.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> target/hexagon/idef-parser/parser-helpers.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/hexagon/idef-parser/parser-helpers.c b/target/hexagon/idef-parser/parser-helpers.c
> index 86511efb62b9..0a01ec39b75e 100644
> --- a/target/hexagon/idef-parser/parser-helpers.c
> +++ b/target/hexagon/idef-parser/parser-helpers.c
> @@ -1123,7 +1123,7 @@ HexValue gen_extend_op(Context *c,
> HexValue *value,
> HexSignedness signedness)
> {
> - unsigned bit_width = (dst_width = 64) ? 64 : 32;
> + unsigned bit_width = (dst_width == 64) ? 64 : 32;
> HexValue value_m = *value;
> HexValue src_width_m = *src_width;
>
Reviewed-by: Anton Johansson <anjo@rev.ng>
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] target/hexagon: fix = vs. == mishap
2023-04-27 13:32 ` Richard Henderson
@ 2023-04-27 23:04 ` Taylor Simpson
2023-04-28 19:22 ` Taylor Simpson
0 siblings, 1 reply; 6+ messages in thread
From: Taylor Simpson @ 2023-04-27 23:04 UTC (permalink / raw)
To: Richard Henderson, Paolo Bonzini, qemu-devel@nongnu.org
> -----Original Message-----
> From: Richard Henderson <richard.henderson@linaro.org>
> Sent: Thursday, April 27, 2023 8:33 AM
> To: Paolo Bonzini <pbonzini@redhat.com>; qemu-devel@nongnu.org
> Cc: Taylor Simpson <tsimpson@quicinc.com>
> Subject: Re: [PATCH] target/hexagon: fix = vs. == mishap
>
> WARNING: This email originated from outside of Qualcomm. Please be wary
> of any links or attachments, and do not enable macros.
>
> On 4/27/23 13:56, Paolo Bonzini wrote:
> > Coverity reports a parameter that is "set but never used". This is
> > caused by an assignment operator being used instead of equality.
> >
> > Cc: Taylor Simpson<tsimpson@quicinc.com>
> > Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
> > ---
> > target/hexagon/idef-parser/parser-helpers.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Queued with next Hexagon update
Thanks,
Taylor
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] target/hexagon: fix = vs. == mishap
2023-04-27 23:04 ` Taylor Simpson
@ 2023-04-28 19:22 ` Taylor Simpson
0 siblings, 0 replies; 6+ messages in thread
From: Taylor Simpson @ 2023-04-28 19:22 UTC (permalink / raw)
To: Richard Henderson, Paolo Bonzini, qemu-devel@nongnu.org
Cc: Alessandro Di Federico, Anton Johansson
> -----Original Message-----
> From: Taylor Simpson
> Sent: Thursday, April 27, 2023 6:05 PM
> To: Richard Henderson <richard.henderson@linaro.org>; Paolo Bonzini
> <pbonzini@redhat.com>; qemu-devel@nongnu.org
> Subject: RE: [PATCH] target/hexagon: fix = vs. == mishap
>
>
>
> > -----Original Message-----
> > From: Richard Henderson <richard.henderson@linaro.org>
> > Sent: Thursday, April 27, 2023 8:33 AM
> > To: Paolo Bonzini <pbonzini@redhat.com>; qemu-devel@nongnu.org
> > Cc: Taylor Simpson <tsimpson@quicinc.com>
> > Subject: Re: [PATCH] target/hexagon: fix = vs. == mishap
> >
> > WARNING: This email originated from outside of Qualcomm. Please be
> wary
> > of any links or attachments, and do not enable macros.
> >
> > On 4/27/23 13:56, Paolo Bonzini wrote:
> > > Coverity reports a parameter that is "set but never used". This is
> > > caused by an assignment operator being used instead of equality.
> > >
> > > Cc: Taylor Simpson<tsimpson@quicinc.com>
> > > Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
> > > ---
> > > target/hexagon/idef-parser/parser-helpers.c | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>
> Queued with next Hexagon update
This patch is causing some yyassert's when idef-parser runs. They are coming from sign and zero extends.
WARNING (A2_vavgw): 'Extending to a size smaller than the current size makes no sense'
I will investigate.
Taylor
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-04-28 19:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-27 12:56 [PATCH] target/hexagon: fix = vs. == mishap Paolo Bonzini
2023-04-27 13:32 ` Richard Henderson
2023-04-27 23:04 ` Taylor Simpson
2023-04-28 19:22 ` Taylor Simpson
2023-04-27 15:27 ` Taylor Simpson
2023-04-27 16:21 ` Anton Johansson via
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).