Sparc64: replace tsptr with helper routine
authorIgor Kovalenko <igor.v.kovalenko@gmail.com>
Mon, 3 Aug 2009 19:15:02 +0000 (23:15 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 4 Aug 2009 20:22:10 +0000 (20:22 +0000)
commitafc47e5db7c9692b989f431af9ec1c1ce7ac49a0
tree46db943bff1e3129cbf61e3065dd27530f34022d
parent218e5cb6b28161b7ce93cca7c3f32ae6917f4011
Sparc64: replace tsptr with helper routine

tl and tsptr of members sparc64 cpu state must be changed
simultaneously to keep trap state window in sync with current
trap level. Currently translation of store to tl does not change
tsptr, which leads to corrupt trap state on corresponding
trap level.

This patch removes tsptr from sparc64 cpu state and replaces
all uses with call to helper routine.

Changes v0->v1:
- reimplemented helper routine with tcg generator
- on cpu reset trap type and pstate are populated with power-on reset
values, including tl=maxtl

Signed-off-by: igor.v.kovalenko@gmail.com
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
linux-user/main.c
target-sparc/cpu.h
target-sparc/helper.c
target-sparc/machine.c
target-sparc/op_helper.c
target-sparc/translate.c