Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0ef9072e
Commit
0ef9072e
authored
Oct 03, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Add Coprocessor data transfer operators for Thumb2 disassembler.
parent
24abf1f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
be_arm.c
programs/winedbg/be_arm.c
+33
-0
No files found.
programs/winedbg/be_arm.c
View file @
0ef9072e
...
...
@@ -1005,6 +1005,38 @@ static UINT thumb2_disasm_coprocmov2(UINT inst, ADDRESS64 *addr)
return
0
;
}
static
UINT
thumb2_disasm_coprocdatatrans
(
UINT
inst
,
ADDRESS64
*
addr
)
{
WORD
indexing
=
(
inst
>>
24
)
&
0x01
;
WORD
direction
=
(
inst
>>
23
)
&
0x01
;
WORD
translen
=
(
inst
>>
22
)
&
0x01
;
WORD
writeback
=
(
inst
>>
21
)
&
0x01
;
WORD
load
=
(
inst
>>
20
)
&
0x01
;
short
offset
=
(
inst
&
0xff
)
<<
2
;
if
(
!
direction
)
offset
*=
-
1
;
dbg_printf
(
"
\n\t
%s%s%s"
,
load
?
"ldc"
:
"stc"
,
(
inst
&
0x10000000
)
?
"2"
:
""
,
translen
?
"l"
:
""
);
if
(
indexing
)
{
if
(
load
&&
get_nibble
(
inst
,
4
)
==
15
)
{
dbg_printf
(
"
\t
p%u, cr%u, "
,
get_nibble
(
inst
,
2
),
get_nibble
(
inst
,
3
));
db_printsym
(
addr
->
Offset
+
offset
+
4
);
}
else
dbg_printf
(
"
\t
p%u, cr%u, [%s, #%d]%s"
,
get_nibble
(
inst
,
2
),
get_nibble
(
inst
,
3
),
tbl_regs
[
get_nibble
(
inst
,
4
)],
offset
,
writeback
?
"!"
:
""
);
}
else
{
if
(
writeback
)
dbg_printf
(
"
\t
p%u, cr%u, [%s], #%d"
,
get_nibble
(
inst
,
2
),
get_nibble
(
inst
,
3
),
tbl_regs
[
get_nibble
(
inst
,
4
)],
offset
);
else
dbg_printf
(
"
\t
p%u, cr%u, [%s], {%u}"
,
get_nibble
(
inst
,
2
),
get_nibble
(
inst
,
3
),
tbl_regs
[
get_nibble
(
inst
,
4
)],
inst
&
0xff
);
}
return
0
;
}
struct
inst_arm
{
UINT
mask
;
...
...
@@ -1080,6 +1112,7 @@ static const struct inst_arm tbl_thumb32[] = {
{
0xef000010
,
0xee000000
,
thumb2_disasm_coprocdat
},
{
0xef000010
,
0xee000010
,
thumb2_disasm_coprocmov1
},
{
0xefe00000
,
0xec400000
,
thumb2_disasm_coprocmov2
},
{
0xee000000
,
0xec000000
,
thumb2_disasm_coprocdatatrans
},
{
0x00000000
,
0x00000000
,
NULL
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment