qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] linux-user: move target_flat.h to target subdirs


From: Richard Henderson
Subject: Re: [PATCH] linux-user: move target_flat.h to target subdirs
Date: Sat, 28 Jan 2023 19:46:43 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 1/28/23 14:46, Mike Frysinger wrote:
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: Mike Frysinger<vapier@gentoo.org>
---
  linux-user/aarch64/target_flat.h       | 1 +
  linux-user/arm/target_flat.h           | 1 +
  linux-user/{ => generic}/target_flat.h | 0
  linux-user/m68k/target_flat.h          | 1 +
  linux-user/microblaze/target_flat.h    | 1 +
  linux-user/sh4/target_flat.h           | 1 +
  6 files changed, 5 insertions(+)
  create mode 100644 linux-user/aarch64/target_flat.h
  create mode 100644 linux-user/arm/target_flat.h
  rename linux-user/{ => generic}/target_flat.h (100%)
  create mode 100644 linux-user/m68k/target_flat.h
  create mode 100644 linux-user/microblaze/target_flat.h
  create mode 100644 linux-user/sh4/target_flat.h

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]