[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/5] Fix LoongArch coverity error and cpu name bug
From: |
Xiaojuan Yang |
Subject: |
[PATCH v2 0/5] Fix LoongArch coverity error and cpu name bug |
Date: |
Wed, 13 Jul 2022 17:50:31 +0800 |
Make some changes following Richard's advice based on version v1. And the
v1 patches fix some coverity errors and loongarch_cpu_class_by_name function
for LoongArch virt machine.
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.
Xiaojuan Yang (5):
target/loongarch/cpu: Fix cpu_class_by_name function
hw/intc/loongarch_pch_pic: Fix coverity errors in update irq
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 | 19 ++++++++++++-------
target/loongarch/cpu.c | 15 ++++++++-------
target/loongarch/op_helper.c | 2 +-
target/loongarch/tlb_helper.c | 4 ++--
4 files changed, 23 insertions(+), 17 deletions(-)
--
2.31.1
- [PATCH v2 0/5] Fix LoongArch coverity error and cpu name bug,
Xiaojuan Yang <=
- [PATCH 2/5] hw/intc/loongarch_pch_pic: Fix coverity errors in update irq, Xiaojuan Yang, 2022/07/13
- [PATCH 5/5] target/loongarch/op_helper: Fix coverity cond_at_most error, Xiaojuan Yang, 2022/07/13
- [PATCH 3/5] target/loongarch/cpu: Fix coverity errors about excp_names, Xiaojuan Yang, 2022/07/13
- [PATCH 4/5] target/loongarch/tlb_helper: Fix coverity integer overflow error, Xiaojuan Yang, 2022/07/13
- [PATCH 1/5] target/loongarch/cpu: Fix cpu_class_by_name function, Xiaojuan Yang, 2022/07/13