]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user: Remove target_pt_regs from target_syscall.h
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Aug 2025 11:55:01 +0000 (21:55 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Aug 2025 21:04:04 +0000 (07:04 +1000)
All target_pt_regs which have not been broken out to
target_ptrace.h by this point are unused.  Remove them.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/alpha/target_syscall.h
linux-user/hexagon/target_syscall.h
linux-user/hppa/target_syscall.h
linux-user/m68k/target_syscall.h
linux-user/riscv/target_syscall.h

index fda3a49f29be92845b700ff62a86a070687f2e2a..53706b749fc0c813987c2c8eabe9017cbd46f44f 100644 (file)
@@ -1,46 +1,6 @@
 #ifndef ALPHA_TARGET_SYSCALL_H
 #define ALPHA_TARGET_SYSCALL_H
 
-/* default linux values for the selectors */
-#define __USER_DS      (1)
-
-struct target_pt_regs {
-       abi_ulong r0;
-       abi_ulong r1;
-       abi_ulong r2;
-       abi_ulong r3;
-       abi_ulong r4;
-       abi_ulong r5;
-       abi_ulong r6;
-       abi_ulong r7;
-       abi_ulong r8;
-       abi_ulong r19;
-       abi_ulong r20;
-       abi_ulong r21;
-       abi_ulong r22;
-       abi_ulong r23;
-       abi_ulong r24;
-       abi_ulong r25;
-       abi_ulong r26;
-       abi_ulong r27;
-       abi_ulong r28;
-       abi_ulong hae;
-/* JRP - These are the values provided to a0-a2 by PALcode */
-       abi_ulong trap_a0;
-       abi_ulong trap_a1;
-       abi_ulong trap_a2;
-/* These are saved by PAL-code: */
-       abi_ulong ps;
-       abi_ulong pc;
-       abi_ulong gp;
-       abi_ulong r16;
-       abi_ulong r17;
-       abi_ulong r18;
-/* Those is needed by qemu to temporary store the user stack pointer */
-        abi_ulong usp;
-        abi_ulong unique;
-};
-
 #define UNAME_MACHINE "alpha"
 #define UNAME_MINIMUM_RELEASE "2.6.32"
 
index 7f91a4abc77a5ffe83c260fa2595ced26ef2082f..d9c94737a5c861c461c8004043db81557c77c4be 100644 (file)
 #ifndef HEXAGON_TARGET_SYSCALL_H
 #define HEXAGON_TARGET_SYSCALL_H
 
-struct target_pt_regs {
-    abi_long sepc;
-    abi_long sp;
-};
-
 #define UNAME_MACHINE "hexagon"
 #define UNAME_MINIMUM_RELEASE "4.15.0"
 
index 9a8f8ca628175fe25771f0897102b50e72385957..4b21e85371330dee2e36b2e52eb8fe98932bed03 100644 (file)
@@ -1,24 +1,6 @@
 #ifndef HPPA_TARGET_SYSCALL_H
 #define HPPA_TARGET_SYSCALL_H
 
-struct target_pt_regs {
-    target_ulong gr[32];
-    uint64_t     fr[32];
-    target_ulong sr[8];
-    target_ulong iasq[2];
-    target_ulong iaoq[2];
-    target_ulong cr27;
-    target_ulong __pad0;
-    target_ulong orig_r28;
-    target_ulong ksp;
-    target_ulong kpc;
-    target_ulong sar;
-    target_ulong iir;
-    target_ulong isr;
-    target_ulong ior;
-    target_ulong ipsw;
-};
-
 #define UNAME_MACHINE "parisc"
 #define UNAME_MINIMUM_RELEASE "2.6.32"
 #define TARGET_CLONE_BACKWARDS
index 8d4ddbd76c8f4b4b4cee53990394d320495a2865..3ca0231c70951efed2d4884ed877a7c28d6bbabf 100644 (file)
@@ -1,22 +1,6 @@
 #ifndef M68K_TARGET_SYSCALL_H
 #define M68K_TARGET_SYSCALL_H
 
-/* this struct defines the way the registers are stored on the
-   stack during a system call. */
-
-struct target_pt_regs {
-    abi_long d1, d2, d3, d4, d5, d6, d7;
-    abi_long a0, a1, a2, a3, a4, a5, a6;
-    abi_ulong d0;
-    abi_ulong usp;
-    abi_ulong orig_d0;
-    int16_t stkadj;
-    uint16_t sr;
-    abi_ulong pc;
-    uint16_t fntvex;
-    uint16_t __fill;
-};
-
 #define UNAME_MACHINE "m68k"
 #define UNAME_MINIMUM_RELEASE "2.6.32"
 
index 7601f10c28e72c7ec22be8640089daf7dfe1873b..69a7b753eb467f324cc100559bbcddbc1651d551 100644 (file)
@@ -8,41 +8,6 @@
 #ifndef LINUX_USER_RISCV_TARGET_SYSCALL_H
 #define LINUX_USER_RISCV_TARGET_SYSCALL_H
 
-struct target_pt_regs {
-    abi_long sepc;
-    abi_long ra;
-    abi_long sp;
-    abi_long gp;
-    abi_long tp;
-    abi_long t0;
-    abi_long t1;
-    abi_long t2;
-    abi_long s0;
-    abi_long s1;
-    abi_long a0;
-    abi_long a1;
-    abi_long a2;
-    abi_long a3;
-    abi_long a4;
-    abi_long a5;
-    abi_long a6;
-    abi_long a7;
-    abi_long s2;
-    abi_long s3;
-    abi_long s4;
-    abi_long s5;
-    abi_long s6;
-    abi_long s7;
-    abi_long s8;
-    abi_long s9;
-    abi_long s10;
-    abi_long s11;
-    abi_long t3;
-    abi_long t4;
-    abi_long t5;
-    abi_long t6;
-};
-
 #ifdef TARGET_RISCV32
 #define UNAME_MACHINE "riscv32"
 #define UNAME_MINIMUM_RELEASE "5.4.0"