Skip to content

Commit

Permalink
target-mips: fix wrong microMIPS opcode encoding
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit 6801038)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
  • Loading branch information
陳韋任 (Wei-Ren Chen) authored and mdroth committed Nov 30, 2012
1 parent f6b803d commit 357414d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-mips/translate.c
Expand Up @@ -9486,7 +9486,7 @@ enum {

/* bits 13..12 for 0x32 */
MULT_ACC = 0x0,
MULTU_ACC = 0x0,
MULTU_ACC = 0x1,

/* bits 15..12 for 0x2c */
SEB = 0x2,
Expand Down

0 comments on commit 357414d

Please sign in to comment.