diff options
author | Thomas Huth | 2017-08-11 07:57:55 +0200 |
---|---|---|
committer | Cornelia Huck | 2017-08-30 18:23:25 +0200 |
commit | 83898cce62ba25a473af6a164388105994481e9c (patch) | |
tree | 316fc639b138b6aeb173a20dbbb548800732ad53 /tests/fw_cfg-test.c | |
parent | s390x/ipl: The s390-ipl device is not hot-pluggable (diff) | |
download | qemu-83898cce62ba25a473af6a164388105994481e9c.tar.gz qemu-83898cce62ba25a473af6a164388105994481e9c.tar.xz qemu-83898cce62ba25a473af6a164388105994481e9c.zip |
tests/boot-sector: Do not overwrite the x86 buffer on other architectures
Re-using the boot_sector code buffer from x86 for other architectures
is not very nice, especially if we add more architectures later. It's
also ugly that the test uses a huge pre-initialized array at all - the
size of the executable is very huge due to this array. So let's use a
separate buffer for each architecture instead, allocated from the heap,
so that we really just use the memory that we need.
Suggested-by: Michael Tsirkin <mst@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <1502431076-22849-2-git-send-email-thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'tests/fw_cfg-test.c')
0 files changed, 0 insertions, 0 deletions