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
4deaee99
Commit
4deaee99
authored
Oct 03, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Add control operators to Thumb2 disassembler.
parent
613ebcd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
be_arm.c
programs/winedbg/be_arm.c
+26
-0
No files found.
programs/winedbg/be_arm.c
View file @
4deaee99
...
...
@@ -712,6 +712,31 @@ static UINT thumb2_disasm_hint(UINT inst, ADDRESS64 *addr)
return
inst
;
}
static
UINT
thumb2_disasm_miscctrl
(
UINT
inst
,
ADDRESS64
*
addr
)
{
WORD
op
=
(
inst
>>
4
)
&
0x0f
;
switch
(
op
)
{
case
2
:
dbg_printf
(
"
\n\t
clrex"
);
break
;
case
4
:
dbg_printf
(
"
\n\t
dsb
\t
#%u"
,
get_nibble
(
inst
,
0
));
break
;
case
5
:
dbg_printf
(
"
\n\t
dmb
\t
#%u"
,
get_nibble
(
inst
,
0
));
break
;
case
6
:
dbg_printf
(
"
\n\t
isb
\t
#%u"
,
get_nibble
(
inst
,
0
));
break
;
default:
return
inst
;
}
return
0
;
}
static
UINT
thumb2_disasm_misc
(
UINT
inst
,
ADDRESS64
*
addr
)
{
WORD
op1
=
(
inst
>>
20
)
&
0x03
;
...
...
@@ -1018,6 +1043,7 @@ static const struct inst_arm tbl_thumb32[] = {
{
0xfff0f000
,
0xf3e08000
,
thumb2_disasm_srtrans
},
{
0xfff0f000
,
0xf3808000
,
thumb2_disasm_srtrans
},
{
0xfff0d000
,
0xf3a08000
,
thumb2_disasm_hint
},
{
0xfff0d000
,
0xf3b08000
,
thumb2_disasm_miscctrl
},
{
0xf8008000
,
0xf0008000
,
thumb2_disasm_branch
},
{
0xffc0f0c0
,
0xfa80f080
,
thumb2_disasm_misc
},
{
0xff80f000
,
0xfa00f000
,
thumb2_disasm_dataprocessingreg
},
...
...
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