target-sparc: Store mmu index in TB flags
authorRichard Henderson <rth@twiddle.net>
Tue, 25 Aug 2015 03:51:21 +0000 (20:51 -0700)
committerRichard Henderson <rth@twiddle.net>
Tue, 12 Jul 2016 18:01:55 +0000 (11:01 -0700)
commit99a230638a3674e921224dbe628159c867d734b1
treed6f559df58c1ac3b7eb9e0f88b2867c99bfa70c5
parente86ceb0d652baa5738e05a59ee0e7989dafbeaa1
target-sparc: Store mmu index in TB flags

Doing this instead of saving the raw PS_PRIV and TL.  This means
that all nucleus mode TBs (TL > 0) can be shared.  This fixes a
bug in that we didn't include HS_PRIV in the TB flags, and so could
produce incorrect TB matches for hypervisor state.

The LSU and DMMU states were unused by the translator.  Including
them in TB flags meant unnecessary mismatches from tb_find_fast.

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