[PATCH v2 0/5] Fix LoongArch coverity error and cpu name bug

Xiaojuan Yang posted 5 patches 3 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220713095036.705102-1-yangxiaojuan@loongson.cn
Maintainers: Xiaojuan Yang <yangxiaojuan@loongson.cn>, Song Gao <gaosong@loongson.cn>
There is a newer version of this series
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(-)
[PATCH v2 0/5] Fix LoongArch coverity error and cpu name bug
Posted by Xiaojuan Yang 3 years, 7 months ago
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