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
698a8b17
Commit
698a8b17
authored
Nov 14, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 14, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emulate "mov cr4,eax" (tombraider 3 demo).
parent
41d1529b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
instr.c
miscemu/instr.c
+18
-0
No files found.
miscemu/instr.c
View file @
698a8b17
...
...
@@ -404,6 +404,24 @@ BOOL32 INSTR_EmulateInstruction( SIGCONTEXT *context )
case
0x0f
:
/* extended instruction */
switch
(
instr
[
1
])
{
case
0x20
:
/* mov cr4, eax */
if
(
instr
[
2
]
!=
0xe0
)
break
;
/* CR4 register . See linux/arch/i386/mm/init.c, X86_CR4_ defs
* bit 0: VME Virtual Mode Exception ?
* bit 1: PVI Protected mode Virtual Interrupt
* bit 2: TSD Timestamp disable
* bit 3: DE Debugging extensions
* bit 4: PSE Page size extensions
* bit 5: PAE Physical address extension
* bit 6: MCE Machine check enable
* bit 7: PGE Enable global pages
* bit 8: PCE Enable performance counters at IPL3
*/
fprintf
(
stderr
,
"mov cr4,eax at 0x%08lx
\n
"
,
EIP_sig
(
context
));
EAX_sig
(
context
)
=
0
;
EIP_sig
(
context
)
+=
prefixlen
+
3
;
return
TRUE
;
#ifdef FS_sig
case
0xa1
:
/* pop fs */
{
...
...
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