From: Richard Henderson <richard.henderson@linaro.org>
To: Xiaojuan Yang <yangxiaojuan@loongson.cn>, qemu-devel@nongnu.org
Cc: gaosong@loongson.cn, maobibo@loongson.cn,
mark.cave-ayland@ilande.co.uk, mst@redhat.com,
imammedo@redhat.com, ani@anisinha.ca, f4bug@amsat.org,
peter.maydell@linaro.org
Subject: Re: [PATCH v3 0/5] Fix LoongArch coverity error and cpu name bug
Date: Tue, 19 Jul 2022 12:28:09 +0530 [thread overview]
Message-ID: <8dcc0b6c-6a78-d98f-e9d1-9a7bf9983676@linaro.org> (raw)
In-Reply-To: <20220715060740.1500628-1-yangxiaojuan@loongson.cn>
On 7/15/22 11:37, Xiaojuan Yang wrote:
> This series fix some coverity errors and loongarch_cpu_class_by_name function
> for LoongArch virt machine.
>
> Only the loongarch_pch_pic patch(number 2/5) need to be reviewed in this v3
> verison, and other patches have been reviewed.
>
> Changes for v3:
>
> 1. In loongarch_pch_pic file, We should not use 'unsigned long'
> type as argument when we use find_first_bit(), and we use
> ctz64() to replace find_first_bit() to fix this bug.
> 2. It is not standard to use '1ULL << irq' to generate a irq mask.
> So, we replace it with 'MAKE_64BIT_MASK(irq, 1)'.
> 3. Rewrite commit comments for op_helper patch(number 5/5).
Queued all of these, with fixes as described for patches 1 and 2.
r~
>
> Changes for v2:
>
> 1. Use MAKE_64BIT_MASK(shift, len) to replace 'xxx << shift'.
> 2. Use ARRAY_SIZE(arrqy) to get the array size.
> 3. Add the assertion that 'cpu_model' resolve to a class of the
> appropriate type.
>
>
> Changes for v1:
>
> 1. Fix coverity errors such as out-of-bounds, integer overflow,
> cond_at_most, etc.
> 2. Fix loongarch_cpu_class_by_name function.
>
>
> Please help review
> Thanks.
>
> Xiaojuan Yang (5):
> target/loongarch/cpu: Fix cpu_class_by_name function
> hw/intc/loongarch_pch_pic: Fix bugs for update_irq function
> target/loongarch/cpu: Fix coverity errors about excp_names
> target/loongarch/tlb_helper: Fix coverity integer overflow error
> target/loongarch/op_helper: Fix coverity cond_at_most error
>
> hw/intc/loongarch_pch_pic.c | 18 +++++++++++-------
> target/loongarch/cpu.c | 15 ++++++++-------
> target/loongarch/op_helper.c | 2 +-
> target/loongarch/tlb_helper.c | 4 ++--
> 4 files changed, 22 insertions(+), 17 deletions(-)
>
prev parent reply other threads:[~2022-07-19 7:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-15 6:07 [PATCH v3 0/5] Fix LoongArch coverity error and cpu name bug Xiaojuan Yang
2022-07-15 6:07 ` [PATCH v3 1/5] target/loongarch/cpu: Fix cpu_class_by_name function Xiaojuan Yang
2022-07-19 6:46 ` Richard Henderson
2022-07-19 6:52 ` Richard Henderson
2022-07-19 8:38 ` Igor Mammedov
2022-07-15 6:07 ` [PATCH v3 2/5] hw/intc/loongarch_pch_pic: Fix bugs for update_irq function Xiaojuan Yang
2022-07-19 5:34 ` Richard Henderson
2022-07-15 6:07 ` [PATCH v3 3/5] target/loongarch/cpu: Fix coverity errors about excp_names Xiaojuan Yang
2022-07-15 6:07 ` [PATCH v3 4/5] target/loongarch/tlb_helper: Fix coverity integer overflow error Xiaojuan Yang
2022-07-15 6:07 ` [PATCH v3 5/5] target/loongarch/op_helper: Fix coverity cond_at_most error Xiaojuan Yang
2022-07-19 6:58 ` Richard Henderson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8dcc0b6c-6a78-d98f-e9d1-9a7bf9983676@linaro.org \
--to=richard.henderson@linaro.org \
--cc=ani@anisinha.ca \
--cc=f4bug@amsat.org \
--cc=gaosong@loongson.cn \
--cc=imammedo@redhat.com \
--cc=maobibo@loongson.cn \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=mst@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=yangxiaojuan@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).