summaryrefslogtreecommitdiff
path: root/bsd-user/sparc/target_syscall.h
diff options
context:
space:
mode:
authorLluís Vilanova <vilanova@ac.upc.edu>2016-02-01 19:38:47 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-02-25 16:41:08 +0000
commit0c6940d086f39bbf725d96104abe46da87429cb6 (patch)
treea5b9897eb57ca09f98f8bf23444b58616561f92f /bsd-user/sparc/target_syscall.h
parent586fc27e6a2ade22e35089e8972bc678b113e1db (diff)
downloadqemu-0c6940d086f39bbf725d96104abe46da87429cb6.zip
build: [bsd-user] Rename "syscall.h" to "target_syscall.h" in target directories
This fixes double-definitions in bsd-user builds when using the UST tracing backend (which indirectly includes the system's "syscall.h"). Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'bsd-user/sparc/target_syscall.h')
-rw-r--r--bsd-user/sparc/target_syscall.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/bsd-user/sparc/target_syscall.h b/bsd-user/sparc/target_syscall.h
new file mode 100644
index 0000000000..c7eec6ba60
--- /dev/null
+++ b/bsd-user/sparc/target_syscall.h
@@ -0,0 +1,14 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
+struct target_pt_regs {
+ abi_ulong psr;
+ abi_ulong pc;
+ abi_ulong npc;
+ abi_ulong y;
+ abi_ulong u_regs[16];
+};
+
+#define UNAME_MACHINE "sun4"
+
+#endif /* TARGET_SYSCALL_H */