target-sparc: Store %asi in TB flags
commita6d567e523ed7e928861f3caa5d49368af3f330d
authorRichard Henderson <rth@twiddle.net>
Thu, 3 Sep 2015 21:14:33 +0000 (3 14:14 -0700)
committerRichard Henderson <rth@twiddle.net>
Tue, 12 Jul 2016 18:02:06 +0000 (12 11:02 -0700)
tree3098b9412187f82e6abe69313ee1695579e183ba
parent22e700607aeaff5f5e139d0fdc3d861e5502040c
target-sparc: Store %asi in TB flags

Knowing the value of %asi at translation time means that we
can handle the common settings without a function call.

The steady state appears to be %asi == ASI_P, so that sparcv9
code can use offset forms of lda/sta.  The %asi register gets
pushed and popped on entry to certain functions, but it rarely
takes on values other than ASI_P or ASI_AIUP.  Therefore we're
unlikely to be expanding the set of TBs created.

Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-sparc/cpu.h
target-sparc/translate.c