Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Fix bugs:
details: https://anonhg.NetBSD.org/src/rev/b6dfb17be5ae
branches: trunk
changeset: 332795:b6dfb17be5ae
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Oct 09 18:34:24 2014 +0000
description:
Fix bugs:
- aaa and daa were reversed. Same as *BSDs.
- fix operand order of shld and shrd. Same as *BSDs.
diffstat:
sys/arch/amd64/amd64/db_disasm.c | 17 +++++++++--------
sys/arch/i386/i386/db_disasm.c | 18 ++++++++++--------
2 files changed, 19 insertions(+), 16 deletions(-)
diffs (140 lines):
diff -r 2c3b3c1bcf9d -r b6dfb17be5ae sys/arch/amd64/amd64/db_disasm.c
--- a/sys/arch/amd64/amd64/db_disasm.c Thu Oct 09 17:36:10 2014 +0000
+++ b/sys/arch/amd64/amd64/db_disasm.c Thu Oct 09 18:34:24 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_disasm.c,v 1.18 2014/10/07 15:34:05 msaitoh Exp $ */
+/* $NetBSD: db_disasm.c,v 1.19 2014/10/09 18:34:24 msaitoh Exp $ */
/*
* Mach Operating System
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.18 2014/10/07 15:34:05 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.19 2014/10/09 18:34:24 msaitoh Exp $");
#ifndef _KERNEL
#include <sys/types.h>
@@ -295,8 +295,8 @@
/*a1*/ { "pop", false, NONE, op1(Si), 0 },
/*a2*/ { "cpuid", false, NONE, 0, 0 },
/*a3*/ { "bt", true, LONG, op2(R,E), 0 },
-/*a4*/ { "shld", true, LONG, op3(Ib,E,R), 0 },
-/*a5*/ { "shld", true, LONG, op3(CL,E,R), 0 },
+/*a4*/ { "shld", true, LONG, op3(Ib,R,E), 0 },
+/*a5*/ { "shld", true, LONG, op3(CL,R,E), 0 },
/*a6*/ { "", false, NONE, 0, 0 },
/*a7*/ { "", false, NONE, 0, 0 },
@@ -304,8 +304,8 @@
/*a9*/ { "pop", false, NONE, op1(Si), 0 },
/*aa*/ { "rsm", false, NONE, 0, 0 },
/*ab*/ { "bts", true, LONG, op2(R,E), 0 },
-/*ac*/ { "shrd", true, LONG, op3(Ib,E,R), 0 },
-/*ad*/ { "shrd", true, LONG, op3(CL,E,R), 0 },
+/*ac*/ { "shrd", true, LONG, op3(Ib,R,E), 0 },
+/*ad*/ { "shrd", true, LONG, op3(CL,R,E), 0 },
/*ae*/ { "fxsave",true, LONG, 0, 0 },
/*af*/ { "imul", true, LONG, op2(E,R), 0 },
};
@@ -339,6 +339,7 @@
/*c5*/ { "", false, NONE, 0, 0 },
/*c6*/ { "", false, NONE, 0, 0 },
/*c7*/ { "", true, NONE, op1(E), db_Grp9 },
+
/*c8*/ { "bswap", false, LONG, op1(Ri), 0 },
/*c9*/ { "bswap", false, LONG, op1(Ri), 0 },
/*ca*/ { "bswap", false, LONG, op1(Ri), 0 },
@@ -596,7 +597,7 @@
/*24*/ { "and", false, BYTE, op2(I, A), 0 },
/*25*/ { "and", false, LONG, op2(I, A), 0 },
/*26*/ { "", false, NONE, 0, 0 },
-/*27*/ { "aaa", false, NONE, 0, 0 },
+/*27*/ { "daa", false, NONE, 0, 0 },
/*28*/ { "sub", true, BYTE, op2(R, E), 0 },
/*29*/ { "sub", true, LONG, op2(R, E), 0 },
@@ -614,7 +615,7 @@
/*34*/ { "xor", false, BYTE, op2(I, A), 0 },
/*35*/ { "xor", false, LONG, op2(I, A), 0 },
/*36*/ { "", false, NONE, 0, 0 },
-/*37*/ { "daa", false, NONE, 0, 0 },
+/*37*/ { "aaa", false, NONE, 0, 0 },
/*38*/ { "cmp", true, BYTE, op2(R, E), 0 },
/*39*/ { "cmp", true, LONG, op2(R, E), 0 },
diff -r 2c3b3c1bcf9d -r b6dfb17be5ae sys/arch/i386/i386/db_disasm.c
--- a/sys/arch/i386/i386/db_disasm.c Thu Oct 09 17:36:10 2014 +0000
+++ b/sys/arch/i386/i386/db_disasm.c Thu Oct 09 18:34:24 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_disasm.c,v 1.42 2014/10/07 15:34:05 msaitoh Exp $ */
+/* $NetBSD: db_disasm.c,v 1.43 2014/10/09 18:34:24 msaitoh Exp $ */
/*
* Mach Operating System
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.42 2014/10/07 15:34:05 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.43 2014/10/09 18:34:24 msaitoh Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -228,6 +228,7 @@
/*45*/ { "cmovnz", true, LONG, op2(E,R), 0 },
/*46*/ { "cmovbe", true, LONG, op2(E,R), 0 },
/*47*/ { "cmovmbe",true, LONG, op2(E,R), 0 },
+
/*48*/ { "cmovs", true, LONG, op2(E,R), 0 },
/*49*/ { "cmovns", true, LONG, op2(E,R), 0 },
/*4a*/ { "cmovp", true, LONG, op2(E,R), 0 },
@@ -283,8 +284,8 @@
/*a1*/ { "pop", false, NONE, op1(Si), 0 },
/*a2*/ { "cpuid", false, NONE, 0, 0 },
/*a3*/ { "bt", true, LONG, op2(R,E), 0 },
-/*a4*/ { "shld", true, LONG, op3(Ib,E,R), 0 },
-/*a5*/ { "shld", true, LONG, op3(CL,E,R), 0 },
+/*a4*/ { "shld", true, LONG, op3(Ib,R,E), 0 },
+/*a5*/ { "shld", true, LONG, op3(CL,R,E), 0 },
/*a6*/ { "", false, NONE, 0, 0 },
/*a7*/ { "", false, NONE, 0, 0 },
@@ -292,8 +293,8 @@
/*a9*/ { "pop", false, NONE, op1(Si), 0 },
/*aa*/ { "rsm", false, NONE, 0, 0 },
/*ab*/ { "bts", true, LONG, op2(R,E), 0 },
-/*ac*/ { "shrd", true, LONG, op3(Ib,E,R), 0 },
-/*ad*/ { "shrd", true, LONG, op3(CL,E,R), 0 },
+/*ac*/ { "shrd", true, LONG, op3(Ib,R,E), 0 },
+/*ad*/ { "shrd", true, LONG, op3(CL,R,E), 0 },
/*ae*/ { "fxsave",true, LONG, 0, 0 },
/*af*/ { "imul", true, LONG, op2(E,R), 0 },
};
@@ -327,6 +328,7 @@
/*c5*/ { "", false, NONE, 0, 0 },
/*c6*/ { "", false, NONE, 0, 0 },
/*c7*/ { "", true, NONE, op1(E), db_Grp9 },
+
/*c8*/ { "bswap", false, LONG, op1(Ri), 0 },
/*c9*/ { "bswap", false, LONG, op1(Ri), 0 },
/*ca*/ { "bswap", false, LONG, op1(Ri), 0 },
@@ -584,7 +586,7 @@
/*24*/ { "and", false, BYTE, op2(I, A), 0 },
/*25*/ { "and", false, LONG, op2(I, A), 0 },
/*26*/ { "", false, NONE, 0, 0 },
-/*27*/ { "aaa", false, NONE, 0, 0 },
+/*27*/ { "daa", false, NONE, 0, 0 },
/*28*/ { "sub", true, BYTE, op2(R, E), 0 },
/*29*/ { "sub", true, LONG, op2(R, E), 0 },
@@ -602,7 +604,7 @@
/*34*/ { "xor", false, BYTE, op2(I, A), 0 },
/*35*/ { "xor", false, LONG, op2(I, A), 0 },
/*36*/ { "", false, NONE, 0, 0 },
-/*37*/ { "daa", false, NONE, 0, 0 },
+/*37*/ { "aaa", false, NONE, 0, 0 },
/*38*/ { "cmp", true, BYTE, op2(R, E), 0 },
/*39*/ { "cmp", true, LONG, op2(R, E), 0 },
Home |
Main Index |
Thread Index |
Old Index