All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] Possible wrong microMIPS opcode encoding
@ 2012-11-14  2:49 陳韋任 (Wei-Ren Chen)
  2012-11-14  5:38 ` Jia Liu
  2012-11-14 16:45 ` Aurelien Jarno
  0 siblings, 2 replies; 10+ messages in thread
From: 陳韋任 (Wei-Ren Chen) @ 2012-11-14  2:49 UTC (permalink / raw)
  To: qemu-trivial; +Cc: chenwj

Hi all,

  While reading microMIPS decoding, I found a possible wrong opcode
encoding. According to [1] page 337, 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>
---
 target-mips/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-mips/translate.c b/target-mips/translate.c
index f6fc0c2..01b48fa 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,
-- 
1.7.12.3


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-11-16  1:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-14  2:49 [Qemu-trivial] [PATCH] Possible wrong microMIPS opcode encoding 陳韋任 (Wei-Ren Chen)
2012-11-14  5:38 ` Jia Liu
2012-11-14 16:56   ` Aurelien Jarno
2012-11-14 23:51     ` 陳韋任 (Wei-Ren Chen)
2012-11-14 16:45 ` Aurelien Jarno
2012-11-14 23:57   ` 陳韋任 (Wei-Ren Chen)
2012-11-15 13:53     ` Aurelien Jarno
2012-11-16  1:26       ` 陳韋任 (Wei-Ren Chen)
2012-11-15  1:17   ` 陳韋任 (Wei-Ren Chen)
2012-11-15 13:56     ` Aurelien Jarno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.