On Fri, 11 Aug 2017 07:57:55 +0200 Thomas Huth <th...@redhat.com> wrote:
> 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 <m...@redhat.com> > Signed-off-by: Thomas Huth <th...@redhat.com> > --- > tests/boot-sector.c | 41 ++++++++++++++++++++++++++--------------- > 1 file changed, 26 insertions(+), 15 deletions(-) Reviewed-by: Cornelia Huck <coh...@redhat.com>