target-mips: Fix seg fault for LUI when MIPS_DEBUG_DISAS==1.
authorEric Johnson <ericj@mips.com>
Sat, 10 Nov 2012 03:40:51 +0000 (19:40 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 11 Nov 2012 15:05:25 +0000 (16:05 +0100)
commit7c2c3ea3fd9e108a1c174a5db021ac1d33b1a22d
treefe62ce2084806f7a26cd1ca15abd977520f52f1c
parent0af10c86ed6656da0c9b680ec9d1c65768dd99b2
target-mips: Fix seg fault for LUI when MIPS_DEBUG_DISAS==1.

The call to gen_logic_imm for OPC_LUI passes -1 for rs.  This
causes the MIPS_DEBUG statement to seg fault due to the deference
of regnames[rs].  This patch fixes that.

Signed-off-by: Eric Johnson <ericj@mips.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(aurel32: replaced static string formating by a static string)
target-mips/translate.c