OSDN Git Service

linux-user/riscv: initialise the TaskState heap/stack info
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 23 Mar 2021 16:52:54 +0000 (16:52 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 24 Mar 2021 14:25:16 +0000 (14:25 +0000)
commit7967d1da7af01c49661241c47708caa6dec78adb
treeba0fd35327c3f9c7f9a52af8f56708924818c266
parent35e3f029a966845e090dc8b295312751524df967
linux-user/riscv: initialise the TaskState heap/stack info

Arguably the target_cpu_copy_regs function for each architecture is
misnamed as a number of the architectures also take the opportunity to
fill out the TaskState structure. This could arguably be factored out
into common code but that would require a wider audit of the
architectures. For now just replicate for riscv so we can correctly
report semihosting information for SYS_HEAPINFO.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20210323165308.15244-9-alex.bennee@linaro.org>
linux-user/riscv/cpu_loop.c