Skip to content
  • Mike Frysinger's avatar
    95fc5ed4
    linux-user: move target_flat.h to target subdirs · 95fc5ed4
    Mike Frysinger authored
    
    
    This makes target_flat.h behave like every other target_xxx.h header.
    It also makes it actually work -- while the current header says adding
    a header to the target subdir overrides the common one, it doesn't.
    This is for two reasons:
    * meson.build adds -Ilinux-user before -Ilinux-user/$arch
    * the compiler search path for "target_flat.h" looks in the same dir
      as the source file before searching -I paths.
    
    This can be seen with the xtensa port -- the subdir settings aren't
    used which breaks stack setup.
    
    Move it to the generic/ subdir and add include stubs like every
    other target_xxx.h header is handled.
    
    Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
    Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
    Message-Id: <20230129004625.11228-1-vapier@gentoo.org>
    Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
    95fc5ed4
    linux-user: move target_flat.h to target subdirs
    Mike Frysinger authored
    
    
    This makes target_flat.h behave like every other target_xxx.h header.
    It also makes it actually work -- while the current header says adding
    a header to the target subdir overrides the common one, it doesn't.
    This is for two reasons:
    * meson.build adds -Ilinux-user before -Ilinux-user/$arch
    * the compiler search path for "target_flat.h" looks in the same dir
      as the source file before searching -I paths.
    
    This can be seen with the xtensa port -- the subdir settings aren't
    used which breaks stack setup.
    
    Move it to the generic/ subdir and add include stubs like every
    other target_xxx.h header is handled.
    
    Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
    Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
    Message-Id: <20230129004625.11228-1-vapier@gentoo.org>
    Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
Loading