]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
target-mips: use deposit instead of hardcoded version
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 9 Oct 2012 19:53:21 +0000 (21:53 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 31 Oct 2012 21:20:48 +0000 (22:20 +0100)
commite0d002f17d1db1ade2b8d24b4a7c7ab361256726
tree7656d2080a1e8ad8abbea01f6a26c31413e1e0f1
parent51127181cfac0315720e6ca502eb133a353f6b11
target-mips: use deposit instead of hardcoded version

Use the deposit op instead of and hardcoded bit field insertion. It
allows the host to emit the corresponding instruction if available.

At the same time remove the (lsb > msb) test. The MIPS64R2 instruction
set manual says "Because of the instruction format, lsb can never be
greater than msb, so there is no UNPREDICATABLE case for this
instruction."

(Bug reported as LP:1071149.)
Cc: Никита Канунников <n.kanunnikov@sbtcom.ru>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c