]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-mips: fix wrong microMIPS opcode encoding
author陳韋任 (Wei-Ren Chen) <chenwj@iis.sinica.edu.tw>
Wed, 14 Nov 2012 02:49:55 +0000 (10:49 +0800)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 15 Nov 2012 13:48:16 +0000 (14:48 +0100)
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 <chenwj@iis.sinica.edu.tw>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c

index f6fc0c27ae27e6c31b27735f4fdf187da07c38a5..01b48fa2a2d12b1548870b64b9063e14d7628f80 100644 (file)
@@ -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,