]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user/arm: Remove a.out startup remenents
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 2 Aug 2025 21:51:51 +0000 (07:51 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 27 Aug 2025 20:39:25 +0000 (06:39 +1000)
The setting of r1/r2 was removed in kernel commit acfdd4b1f7590d0
("ARM: 7791/1: a.out: remove partial a.out support"), and the
kernel commit message explains the history.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/arm/cpu_loop.c

index 739e1607e3d80fa4874da39adacfe5532b03ceda..9aeb9b0087f5f8dce90fd7b7074f9b693cdfa192 100644 (file)
@@ -492,10 +492,6 @@ void init_main_thread(CPUState *cs, struct image_info *info)
     env->regs[15] = entry & 0xfffffffe;
     env->regs[13] = stack;
 
-    /* FIXME - what to for failure of get_user()? */
-    get_user_ual(env->regs[2], stack + 8); /* envp */
-    get_user_ual(env->regs[1], stack + 4); /* envp */
-
     /*
      * Per the SVR4 ABI, r0 contains a pointer to a function to be
      * registered with atexit.  A value of 0 means we have no such handler.