tcg/mips: Support r6 JR encoding
authorJames Hogan <james.hogan@imgtec.com>
Fri, 2 Oct 2015 12:24:15 +0000 (13:24 +0100)
committerRichard Henderson <rth@twiddle.net>
Mon, 19 Oct 2015 21:04:38 +0000 (11:04 -1000)
commit6e0d096989be52c2b945fc83a9bd15d887bbdb47
tree0d6f71f900ac1b49a8a936d280f604513e4b18de
parentce14bd4d469f3a14f6cbfceb6360aee066a60d72
tcg/mips: Support r6 JR encoding

MIPSr6 encodes JR as JALR with zero as the link register, and the pre-r6
JR encoding is removed. Update TCG to use the new encoding when built
for r6.

We still use the old encoding for pre-r6, so as not to confuse return
prediction stack hardware which may detect only particular encodings of
the return instruction.

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Message-Id: <1443788657-14537-5-git-send-email-james.hogan@imgtec.com>
tcg/mips/tcg-target.c