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
fbbe6a43
Commit
fbbe6a43
authored
Aug 20, 2003
by
Jukka Heinonen
Committed by
Alexandre Julliard
Aug 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make FPU emulation use CS:IP when determining location of calling
software interrupt.
parent
37925eaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fpu.c
dlls/winedos/fpu.c
+4
-4
No files found.
dlls/winedos/fpu.c
View file @
fbbe6a43
...
...
@@ -222,8 +222,7 @@ void WINAPI DOSVM_Int3eHandler(CONTEXT86 *context)
*/
static
void
FPU_ModifyCode
(
CONTEXT86
*
context
,
BYTE
Opcode
)
{
WORD
*
stack
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegSs
,
context
->
Esp
);
BYTE
*
code
=
CTX_SEG_OFF_TO_LIN
(
context
,
stack
[
1
],
stack
[
0
]);
BYTE
*
code
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegCs
,
context
->
Eip
);
/*
* All *NIX systems should have a real or kernel emulated FPU.
...
...
@@ -232,9 +231,10 @@ static void FPU_ModifyCode(CONTEXT86 *context, BYTE Opcode)
code
[
-
2
]
=
0x9b
;
/* The fwait instruction */
code
[
-
1
]
=
Opcode
;
/* Insert the opcode */
if
(
stack
[
0
]
<
2
)
FIXME
(
"Backed up over a segment boundry in FPU code.
\n
"
);
if
(
ISV86
(
context
)
&&
LOWORD
(
context
->
Eip
)
<
2
)
FIXME
(
"Backed up over a real mode segment boundary in FPU code.
\n
"
);
stack
[
0
]
-=
2
;
/* back up the return address 2 bytes */
context
->
Eip
-=
2
;
/* back up the return address 2 bytes */
TRACE
(
"Modified code in FPU int call to 0x9b 0x%x
\n
"
,
Opcode
);
}
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