target/mips: fulong2e: Dynamically generate SPD EEPROM data
commitfb1b0fcc03b0c15bc3580309738280ad9565b6d9
authorBALATON Zoltan <balaton@eik.bme.hu>
Thu, 21 Feb 2019 12:34:07 +0000 (21 13:34 +0100)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Thu, 21 Feb 2019 18:36:47 +0000 (21 19:36 +0100)
tree129c49751b34acdbad3123ab060377bbcc14fb1b
parentbe9f6d1140fc8d61a2bc5e54c626b01b77dd6a8e
target/mips: fulong2e: Dynamically generate SPD EEPROM data

The machine comes with 256M memory module by default but it's
upgradable so it could have different memory size. There was a TODO
comment to replace static SPD EEPROM data with dynamically generated
one to support this. Now that we have a function for that, it's easy
to do. Although this would allow larger RAM sizes, the peculiar memory
map of the machine may need some special handling to map it as low and
high memory. Because I don't know what the correct place would be for
highmem, I've left memory size fixed at 256M for now and TODO is moved
there instead.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/mips/mips_fulong2e.c