summary refs log tree commit diff stats
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2020-02-19 11:09:39 -0500
committerPatchew Importer <importer@patchew.org>2020-02-19 16:50:00 +0000
commita0258e4afa10a8e9dba4901b7a8202dac24c72e2 (patch)
treea46aa725643ed83e639f148a0e3fc3eeaa22029c /scripts/qapi/source.py
parent2dc9ce13d210d591a0b9d98234fe6f39a535bf68 (diff)
downloadfocaccia-qemu-a0258e4afa10a8e9dba4901b7a8202dac24c72e2.tar.gz
focaccia-qemu-a0258e4afa10a8e9dba4901b7a8202dac24c72e2.zip
ppc/{ppc440_bamboo, sam460ex}: drop RAM size fixup
If user provided non-sense RAM size, board will complain and
continue running with max RAM size supported or sometimes
crash like this:
  %QEMU -M bamboo -m 1
    exec.c:1926: find_ram_offset: Assertion `size != 0' failed.
    Aborted (core dumped)
Also RAM is going to be allocated by generic code, so it won't be
possible for board to fix things up for user.

Make it error message and exit to force user fix CLI,
instead of accepting non-sense CLI values.
That also fixes crash issue, since wrongly calculated size
isn't used to allocate RAM

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20200219160953.13771-66-imammedo@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions