OSDN Git Service

target/sh4: return result of fcmp using TCG
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 2 Jul 2017 19:31:25 +0000 (21:31 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 18 Jul 2017 21:39:15 +0000 (23:39 +0200)
commit92f1f83e34f0454b98f3a7fc082636c38cafa115
tree4a54a2a81365da17d8b5c1bbe2f5b7ce4e51284a
parent82e8251374568ba63343b695925c883a7da3db6f
target/sh4: return result of fcmp using TCG

Since that the T bit of the SR register is mapped using a TGC global,
it's better to return the value through TCG than writing it directly. It
allows to declare the helpers with the flag TCG_CALL_NO_WG.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-Id: <20170702202814.27793-5-aurelien@aurel32.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target/sh4/helper.h
target/sh4/op_helper.c
target/sh4/translate.c