summary refs log tree commit diff stats
path: root/hw/intc/grlib_irqmp.c
diff options
context:
space:
mode:
authorXiaojuan Yang <yangxiaojuan@loongson.cn>2022-07-01 17:33:57 +0800
committerRichard Henderson <richard.henderson@linaro.org>2022-07-04 11:08:58 +0530
commit4f2c65877ce8b9405ff3f1c5e5f4bb4b90f24b6b (patch)
tree2eabb9f99255b294be72591587017ae03912cce7 /hw/intc/grlib_irqmp.c
parent490c03ab1106121182f380c639a7db852e1b5401 (diff)
downloadfocaccia-qemu-4f2c65877ce8b9405ff3f1c5e5f4bb4b90f24b6b.tar.gz
focaccia-qemu-4f2c65877ce8b9405ff3f1c5e5f4bb4b90f24b6b.zip
hw/rtc/ls7a_rtc: Fix uninitialied bugs and toymatch writing function
1. Initialize the tm struct in toymatch_write() and ls7a_toy_start() to
   fix uninitialized bugs.
2. Fix toymatch_val_to_time function. By the document, when we calculate
   the expiration year, we should first get current year, and replace the
   0-5 bits with toymatch's 26-31 bits.

Fixes: Coverity CID 1489766, 1489763

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220701093407.2150607-2-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/intc/grlib_irqmp.c')
0 files changed, 0 insertions, 0 deletions