Right now, we cannot load some binary file if it is bigger than the
machine's ram size. This limitation only occurs when loading a
binary file: we can load a corresponding elf file without this
limitation.
This is an issue for machines that have small ram or do not use the
ram_size feature at all.
Also get rid of "hw/boards.h" include, since we needed it only
to access `current_machine`.
Fixes: e481a1f63c9 ("generic-loader: Add a generic loader")
Signed-off-by: Damien Hedde <damien.hedde@greensocs.com>
---
Hi Alistair,
I found this while experimenting with a ram_size=0 machine.