On 01/16/2018 06:13 AM, Laurent Vivier wrote: >> There is no reason to read the elf header twice -- e_flags has already been >> stored in the struct image_info. > > When we set cpu_model, image_info is not initialized. > Do you propose to move cpu_init() after loader_exec()?
Sure. r~