qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

linux-user: Clean up target_cpu.h header guards

These headers all use TARGET_CPU_H as header guard symbol. Reuse of
the same guard symbol in multiple headers is okay as long as they
cannot be included together.

Since we can avoid guard symbol reuse easily, do so: use guard symbol
$target_TARGET_CPU_H for linux-user/$target/target_cpu.h.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>

+31 -31
+2 -2
linux-user/aarch64/target_cpu.h
··· 16 16 * You should have received a copy of the GNU Lesser General Public 17 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #ifndef TARGET_CPU_H 20 - #define TARGET_CPU_H 19 + #ifndef AARCH64_TARGET_CPU_H 20 + #define AARCH64_TARGET_CPU_H 21 21 22 22 static inline void cpu_clone_regs(CPUARMState *env, target_ulong newsp) 23 23 {
+2 -2
linux-user/alpha/target_cpu.h
··· 16 16 * You should have received a copy of the GNU Lesser General Public 17 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #ifndef TARGET_CPU_H 20 - #define TARGET_CPU_H 19 + #ifndef ALPHA_TARGET_CPU_H 20 + #define ALPHA_TARGET_CPU_H 21 21 22 22 static inline void cpu_clone_regs(CPUAlphaState *env, target_ulong newsp) 23 23 {
+2 -2
linux-user/arm/target_cpu.h
··· 16 16 * You should have received a copy of the GNU Lesser General Public 17 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #ifndef TARGET_CPU_H 20 - #define TARGET_CPU_H 19 + #ifndef ARM_TARGET_CPU_H 20 + #define ARM_TARGET_CPU_H 21 21 22 22 static inline void cpu_clone_regs(CPUARMState *env, target_ulong newsp) 23 23 {
+2 -2
linux-user/cris/target_cpu.h
··· 17 17 * You should have received a copy of the GNU Lesser General Public 18 18 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 - #ifndef TARGET_CPU_H 21 - #define TARGET_CPU_H 20 + #ifndef CRIS_TARGET_CPU_H 21 + #define CRIS_TARGET_CPU_H 22 22 23 23 static inline void cpu_clone_regs(CPUCRISState *env, target_ulong newsp) 24 24 {
+3 -3
linux-user/i386/target_cpu.h
··· 17 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #ifndef TARGET_CPU_H 21 - #define TARGET_CPU_H 20 + #ifndef I386_TARGET_CPU_H 21 + #define I386_TARGET_CPU_H 22 22 23 23 static inline void cpu_clone_regs(CPUX86State *env, target_ulong newsp) 24 24 { ··· 45 45 } 46 46 #endif /* defined(TARGET_ABI32) */ 47 47 48 - #endif /* !defined(TARGET_CPU_H) */ 48 + #endif /* I386_TARGET_CPU_H */
+2 -2
linux-user/m68k/target_cpu.h
··· 18 18 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 20 21 - #ifndef TARGET_CPU_H 22 - #define TARGET_CPU_H 21 + #ifndef M68K_TARGET_CPU_H 22 + #define M68K_TARGET_CPU_H 23 23 24 24 static inline void cpu_clone_regs(CPUM68KState *env, target_ulong newsp) 25 25 {
+2 -2
linux-user/microblaze/target_cpu.h
··· 16 16 * You should have received a copy of the GNU Lesser General Public 17 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #ifndef TARGET_CPU_H 20 - #define TARGET_CPU_H 19 + #ifndef MICROBLAZE_TARGET_CPU_H 20 + #define MICROBLAZE_TARGET_CPU_H 21 21 22 22 static inline void cpu_clone_regs(CPUMBState *env, target_ulong newsp) 23 23 {
+2 -2
linux-user/mips/target_cpu.h
··· 16 16 * You should have received a copy of the GNU Lesser General Public 17 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #ifndef TARGET_CPU_H 20 - #define TARGET_CPU_H 19 + #ifndef MIPS_TARGET_CPU_H 20 + #define MIPS_TARGET_CPU_H 21 21 22 22 static inline void cpu_clone_regs(CPUMIPSState *env, target_ulong newsp) 23 23 {
+2 -2
linux-user/openrisc/target_cpu.h
··· 17 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #ifndef TARGET_CPU_H 21 - #define TARGET_CPU_H 20 + #ifndef OPENRISC_TARGET_CPU_H 21 + #define OPENRISC_TARGET_CPU_H 22 22 23 23 static inline void cpu_clone_regs(CPUOpenRISCState *env, target_ulong newsp) 24 24 {
+2 -2
linux-user/ppc/target_cpu.h
··· 16 16 * You should have received a copy of the GNU Lesser General Public 17 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #ifndef TARGET_CPU_H 20 - #define TARGET_CPU_H 19 + #ifndef PPC_TARGET_CPU_H 20 + #define PPC_TARGET_CPU_H 21 21 22 22 static inline void cpu_clone_regs(CPUPPCState *env, target_ulong newsp) 23 23 {
+2 -2
linux-user/s390x/target_cpu.h
··· 19 19 * You should have received a copy of the GNU (Lesser) General Public 20 20 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 21 21 */ 22 - #ifndef TARGET_CPU_H 23 - #define TARGET_CPU_H 22 + #ifndef S390X_TARGET_CPU_H 23 + #define S390X_TARGET_CPU_H 24 24 25 25 static inline void cpu_clone_regs(CPUS390XState *env, target_ulong newsp) 26 26 {
+2 -2
linux-user/sh4/target_cpu.h
··· 16 16 * You should have received a copy of the GNU Lesser General Public 17 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #ifndef TARGET_CPU_H 20 - #define TARGET_CPU_H 19 + #ifndef SH4_TARGET_CPU_H 20 + #define SH4_TARGET_CPU_H 21 21 22 22 static inline void cpu_clone_regs(CPUSH4State *env, target_ulong newsp) 23 23 {
+2 -2
linux-user/sparc/target_cpu.h
··· 17 17 * You should have received a copy of the GNU Lesser General Public 18 18 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 - #ifndef TARGET_CPU_H 21 - #define TARGET_CPU_H 20 + #ifndef SPARC_TARGET_CPU_H 21 + #define SPARC_TARGET_CPU_H 22 22 23 23 static inline void cpu_clone_regs(CPUSPARCState *env, target_ulong newsp) 24 24 {
+2 -2
linux-user/tilegx/target_cpu.h
··· 16 16 * You should have received a copy of the GNU Lesser General Public 17 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #ifndef TARGET_CPU_H 20 - #define TARGET_CPU_H 19 + #ifndef TILEGX_TARGET_CPU_H 20 + #define TILEGX_TARGET_CPU_H 21 21 22 22 static inline void cpu_clone_regs(CPUTLGState *env, target_ulong newsp) 23 23 {
+2 -2
linux-user/unicore32/target_cpu.h
··· 8 8 * published by the Free Software Foundation, or (at your option) any 9 9 * later version. See the COPYING file in the top-level directory. 10 10 */ 11 - #ifndef TARGET_CPU_H 12 - #define TARGET_CPU_H 11 + #ifndef UNICORE32_TARGET_CPU_H 12 + #define UNICORE32_TARGET_CPU_H 13 13 14 14 static inline void cpu_clone_regs(CPUUniCore32State *env, target_ulong newsp) 15 15 {