sam460ex: Suppress useless warning on -m 32 and -m 64
commitfc0cfc1decb5457058d7cbfeb7ae26ad5d6ecba4
authorMarkus Armbruster <armbru@redhat.com>
Wed, 22 Apr 2020 13:48:12 +0000 (22 15:48 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 29 Apr 2020 06:01:52 +0000 (29 08:01 +0200)
tree9fcb282e08a3d9b75f6a9402bce6bbfec58dcac6
parent51bd45816615bdb22a31a86f02d601ce536034e3
sam460ex: Suppress useless warning on -m 32 and -m 64

Requesting 32 or 64 MiB of RAM with the sam460ex machine type produces
a useless warning:

    qemu-system-ppc: warning: Memory size is too small for SDRAM type, adjusting type

This is because sam460ex_init() asks spd_data_generate() for DDR2,
which is impossible, so spd_data_generate() corrects it to DDR.

The warning goes back to commit 08fd99179a "sam460ex: Clean up SPD
EEPROM creation".

Make sam460ex_init() pass the correct SDRAM type to get rid of the
warning.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200422134815.1584-2-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/ppc/sam460ex.c