Cédric Le Goater b4cc583f02 aspeed/smc: use a modulo to check segment limits
The size of a segment is not necessarily a power of 2.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1486648058-520-5-git-send-email-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-02-10 17:40:30 +00:00
..
2016-10-04 13:28:07 +01:00
2016-01-29 15:07:25 +00:00
2016-05-19 16:42:29 +02:00
2016-10-04 13:28:07 +01:00
2016-01-29 15:07:23 +00:00