Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b24aadd

Browse files
VMM/VMMR3/GCMR3.cpp: Avoid calling VMMGetCpu() twice when the macro is expanded, bguref:3409
svn:sync-xref-src-repo-rev: r171316
1 parent 258ee54 commit b24aadd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/VBox/VMM/VMMR3/GCMR3.cpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: GCMR3.cpp 111695 2025-11-13 13:31:17Z knut.osmundsen@oracle.com $ */
1+
/* $Id: GCMR3.cpp 111723 2025-11-14 09:19:02Z alexander.eichner@oracle.com $ */
22
/** @file
33
* GCM - Guest Compatibility Manager.
44
*/
@@ -420,7 +420,8 @@ static DECLCALLBACK(void) gcmR3PatchGuest(PVM pVM, GCMGSTPATCHID enmPatch)
420420
* Ensure that the state necessary for memory accesses is imported as we might
421421
* be called through an I/O port handler where this might not be the case.
422422
*/
423-
CPUM_IMPORT_EXTRN_RCSTRICT(VMMGetCpu(pVM),
423+
PVMCPUCC pVCpu = VMMGetCpu(pVM);
424+
CPUM_IMPORT_EXTRN_RCSTRICT(pVCpu,
424425
CPUMCTX_EXTRN_RIP
425426
| CPUMCTX_EXTRN_RFLAGS
426427
| CPUMCTX_EXTRN_SS /* for CPL */

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /