]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user/nios2: Only initialize SP and PC in target_cpu_copy_regs
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 21 Apr 2022 15:16:51 +0000 (08:16 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 26 Apr 2022 15:16:41 +0000 (08:16 -0700)
commitdd4c6ee227202481d93b5329c5bd5d44ecb5c033
tree31b719d6eb7173f078dd3c2a97815c74755d9cfb
parentf1ec078f9af0f255ca4ae2b8c0d8d8c98903f7d5
linux-user/nios2: Only initialize SP and PC in target_cpu_copy_regs

Drop the set of estatus in init_thread; it was clearly intended
to be setting the value of CR_STATUS for the application, but we
never actually performed that copy.  However, the proper value is
set in nios2_cpu_reset so we don't need to do anything here.

We only initialize SP and EA in init_thread, there's no value in
copying other uninitialized data into ENV.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220421151735.31996-21-richard.henderson@linaro.org>
linux-user/elfload.c
linux-user/nios2/cpu_loop.c