Re: [PATCH 2/3] hw/net/e1000: Move macreg[] arrays to .rodata to save 1MiB of .data

2020-03-05 Thread Dmitry Fleytman
> On 5 Mar 2020, at 3:04, Philippe Mathieu-Daudé wrote: > > Each array consumes 256KiB of .data. As we do not reassign entries, > we can move it to the .rodata section, and save a total of 1MiB of > .data (size reported on x86_64 host). > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by:

[PATCH 2/3] hw/net/e1000: Move macreg[] arrays to .rodata to save 1MiB of .data

2020-03-04 Thread Philippe Mathieu-Daudé
Each array consumes 256KiB of .data. As we do not reassign entries, we can move it to the .rodata section, and save a total of 1MiB of .data (size reported on x86_64 host). Signed-off-by: Philippe Mathieu-Daudé --- hw/net/e1000.c | 4 ++-- hw/net/e1000e_core.c | 4 ++-- 2 files changed, 4