Niek Linnenbank
34d8df2a1d
hw/misc/allwinner-h3-dramc: enforce 64-bit multiply when calculating row mirror address
...
The allwinner_h3_dramc_map_rows function simulates row addressing behavior
when bootloader software attempts to detect the amount of available SDRAM.
Currently the line that calculates the 64-bit address of the mirrored row
uses a signed 32-bit multiply operation that in theory could result in the
upper 32-bit be all 1s. This commit ensures that the row mirror address
is calculated using only 64-bit operations.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Message-id: 20200323192944.5967-1-nieklinnenbank@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2020-03-30 13:18:58 +01:00
..
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-03-12 16:27:33 +00:00
2020-03-12 16:27:33 +00:00
2020-03-30 13:18:58 +01:00
2020-03-12 16:27:33 +00:00
2020-03-12 16:27:33 +00:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:53 +02:00
2020-02-21 16:06:59 +00:00
2020-02-19 16:49:54 +00:00
2019-08-16 13:31:52 +02:00
2019-06-12 13:18:33 +02:00
2020-03-23 17:22:30 +00:00
2020-03-23 17:22:30 +00:00
2019-08-16 13:31:52 +02:00
2019-10-25 13:09:27 +01:00
2019-08-16 13:37:36 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-03-16 23:02:24 +01:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:37:36 +02:00
2019-08-16 13:31:52 +02:00
2019-11-05 15:02:33 +01:00
2020-02-13 14:14:52 +00:00
2019-08-16 13:31:52 +02:00
2019-08-21 13:24:01 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:37:36 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2019-06-12 13:18:33 +02:00
2020-01-17 14:27:16 +00:00
2020-02-21 16:07:00 +00:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-03-17 16:05:49 +01:00
2020-01-17 14:09:29 +00:00
2020-03-12 16:05:48 +01:00
2020-03-12 16:27:33 +00:00
2020-01-20 09:10:23 +01:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2020-03-16 22:07:42 +01:00
2019-08-16 13:31:52 +02:00
2020-02-20 14:47:08 +01:00
2020-01-30 16:02:02 +00:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:37:36 +02:00
2019-06-12 13:18:33 +02:00
2020-01-17 14:09:29 +00:00
2020-01-23 15:34:04 +00:00
2019-08-16 13:31:52 +02:00
2019-10-22 09:38:42 +02:00
2020-03-12 16:27:33 +00:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-10-15 18:18:08 -03:00
2019-08-16 17:21:40 +01:00
2019-08-16 13:31:53 +02:00