ppc/ppc405_boards: add RAM size checks
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:09:37 +0000 (11:09 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:50:00 +0000 (16:50 +0000)
commit4428dcf7b990d6dae05de8611dcd7098121534c8
tree7ca34572534e98a44a994c9f49078217aa09f0c1
parent173a36d8d165872183bb62d1bac4aff5ef5bf495
ppc/ppc405_boards: add RAM size checks

If user provided non-sense RAM size, board will ignore it
and continue running with fixed RAM size.

Also RAM is going to be allocated by generic code, so it
won't be possible for board to fix CLI.

Make it error message and exit to force user fix CLI,
instead of accepting non-sense CLI values.

PS:
move fixed RAM size into mc->default_ram_size, so that
generic code will know how much to allocate.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200219160953.13771-64-imammedo@redhat.com>
hw/ppc/ppc405_boards.c