linux-user/sparc: Use WREG constants in sparc/target_cpu.h
commit083244d320c3d8d7b93a08b2b0f5d06c6295be66
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 6 Nov 2019 11:33:10 +0000 (6 12:33 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 6 Nov 2019 12:36:32 +0000 (6 13:36 +0100)
treefe40e95626e6b9641e959a8fce09387981b9fc0e
parentf8a745974de88779b000d4882b24a37153da2445
linux-user/sparc: Use WREG constants in sparc/target_cpu.h

This fixes a naming bug wherein we used "UREG_FP" to access the
stack pointer.  OTOH, the "UREG_FP" constant was also defined
incorrectly such that it *did* reference the stack pointer.

Note that the kernel legitimately uses the name "FP", because it
utilizes the rolled stack window in processing the system call.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20191106113318.10226-5-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/sparc/target_cpu.h