From: 陳韋任 (Wei-Ren Chen) Date: Wed, 14 Nov 2012 02:49:55 +0000 (+0800) Subject: target-mips: fix wrong microMIPS opcode encoding X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6801038bc52d61f81ac8a25fbe392f1bad982887;p=people%2Fliuw%2Flibxenctrl-split%2Fqemu-xen.git target-mips: fix wrong microMIPS opcode encoding While reading microMIPS decoding, I found a possible wrong opcode encoding. According to [1] page 166, the bits 13..12 for MULTU is 0x01 rather than 0x00. Please review, thanks. [1] MIPS Architecture for Programmers VolumeIV-e: The MIPS DSP Application-Specific Extension to the microMIPS32 Architecture Signed-off-by: Chen Wei-Ren Signed-off-by: Aurelien Jarno --- diff --git a/target-mips/translate.c b/target-mips/translate.c index f6fc0c27a..01b48fa2a 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -10385,7 +10385,7 @@ enum { /* bits 13..12 for 0x32 */ MULT_ACC = 0x0, - MULTU_ACC = 0x0, + MULTU_ACC = 0x1, /* bits 15..12 for 0x2c */ SEB = 0x2,