diff options
author | Peter Maydell | 2014-05-13 17:09:39 +0200 |
---|---|---|
committer | Peter Maydell | 2014-05-13 17:09:39 +0200 |
commit | 7e7e5858f83ae711b08d11e2268c6fc6f8385fb7 (patch) | |
tree | 329a6e931144270326a6fafe1be946d0ecda080d /memory.c | |
parent | hw/net/cadence_gem: Remove dead code (diff) | |
download | qemu-7e7e5858f83ae711b08d11e2268c6fc6f8385fb7.tar.gz qemu-7e7e5858f83ae711b08d11e2268c6fc6f8385fb7.tar.xz qemu-7e7e5858f83ae711b08d11e2268c6fc6f8385fb7.zip |
hw/arm/omap1: Avoid unintended sign extension writing omap_rtc YEARS_REG
When writing to the YEARS_REG register, if the year value is
99 then the multiplication by 31536000 will overflow into
the sign bit of a 32 bit value and then be erroneously
sign-extended if time_t is 64 bits. Add a cast to avoid this.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Diffstat (limited to 'memory.c')
0 files changed, 0 insertions, 0 deletions