=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: winedbg: Add enhanced Coprocessor move operators to Thumb2 disassembler.

Alexandre Julliard julliard at winehq.org
Thu Oct 4 13:38:36 CDT 2012


Module: wine
Branch: master
Commit: 24abf1f68bd3d9004526edd213763bf9bb244127
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=24abf1f68bd3d9004526edd213763bf9bb244127

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Oct  3 21:22:29 2012 +0200

winedbg: Add enhanced Coprocessor move operators to Thumb2 disassembler.

---

 programs/winedbg/be_arm.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/programs/winedbg/be_arm.c b/programs/winedbg/be_arm.c
index 5a95e61..3ecf475 100644
--- a/programs/winedbg/be_arm.c
+++ b/programs/winedbg/be_arm.c
@@ -996,6 +996,15 @@ static UINT thumb2_disasm_coprocmov1(UINT inst, ADDRESS64 *addr)
     return 0;
 }
 
+static UINT thumb2_disasm_coprocmov2(UINT inst, ADDRESS64 *addr)
+{
+    dbg_printf("\n\t%s%s\tp%u, #%u, %s, %s, cr%u", (inst & 0x00100000)?"mrrc":"mcrr",
+               (inst & 0x10000000)?"2":"", get_nibble(inst, 2), get_nibble(inst, 1),
+               tbl_regs[get_nibble(inst, 3)], tbl_regs[get_nibble(inst, 4)], get_nibble(inst, 0));
+
+    return 0;
+}
+
 struct inst_arm
 {
         UINT mask;
@@ -1070,6 +1079,7 @@ static const struct inst_arm tbl_thumb32[] = {
     { 0xff700000, 0xf8500000, thumb2_disasm_ldrword },
     { 0xef000010, 0xee000000, thumb2_disasm_coprocdat },
     { 0xef000010, 0xee000010, thumb2_disasm_coprocmov1 },
+    { 0xefe00000, 0xec400000, thumb2_disasm_coprocmov2 },
     { 0x00000000, 0x00000000, NULL }
 };
 




More information about the wine-cvs mailing list