summaryrefslogtreecommitdiff
path: root/hw/char
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2013-07-19 12:56:24 +0200
committerAlexander Graf <agraf@suse.de>2013-09-02 10:06:40 +0200
commit28290f37e20cda27574f15be9e9499493e3d0fe8 (patch)
tree6677dae209284617bf2feaadd8c0afe1e5d80d73 /hw/char
parent4ff78e0dbcd5c795962567fdc1b31e9e03c55b07 (diff)
downloadqemu-28290f37e20cda27574f15be9e9499493e3d0fe8.tar.gz
PPC: E500: Generate device tree on reset
Today we generate the device tree once on machine initialization and then store the finalized blob in memory to reload it on reset. This is bad for 2 reasons. First we potentially waste a bunch of RAM for no good reason, as we have all information required to regenerate the device tree available anyways. The second reason is even more important. On machine init when we generate the device tree for the first time, we don't have all of the devices fully initialized yet. But the device tree needs to potentially walk devices to put information about them into the device tree. Move the generation into a reset function. That way we just generate it new every time we reset, solving both of the above issues. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/char')
0 files changed, 0 insertions, 0 deletions