VirtualBox

Changeset 5695 in vbox


Ignore:
Timestamp:
Nov 11, 2007 5:57:57 PM (17 years ago)
Author:
vboxsync
Message:

Don't drag in CPUMAllA.asm in ring-3 because leopard doesn't like the jump table. It's not needed.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/Makefile.kmk

    r5683 r5695  
    9292        HWACCM.cpp \
    9393        VMMAll/CPUMAllRegs.cpp \
    94         VMMAll/CPUMAllA.asm \
    9594        VMMAll/DBGFAll.cpp \
    9695        VMMAll/IOMAll.cpp \
  • trunk/src/VBox/VMM/VMMAll/CPUMAllA.asm

    r5389 r5695  
    66;
    77;  Copyright (C) 2006-2007 innotek GmbH
    8 ; 
     8;
    99;  This file is part of VirtualBox Open Source Edition (OSE), as
    1010;  available from http://www.virtualbox.org. This file is free software;
     
    2626%include "VBox/cpum.mac"
    2727
     28%ifdef IN_RING3
     29 %error "The jump table doesn't link on leopard."
     30%endif
    2831
    2932;
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r5389 r5695  
    442442
    443443/**
    444  * Set the guest CR0. 
    445  * 
    446  * When called in GC, the hyper CR0 may be updated if that is 
    447  * required. The caller only has to take special action if AM, 
    448  * WP, PG or PE changes. 
    449  * 
     444 * Set the guest CR0.
     445 *
     446 * When called in GC, the hyper CR0 may be updated if that is
     447 * required. The caller only has to take special action if AM,
     448 * WP, PG or PE changes.
     449 *
    450450 * @returns VINF_SUCCESS (consider it void).
    451451 * @param   pVM     Pointer to the shared VM structure.
     
    456456#ifdef IN_GC
    457457    /*
    458      * Check if we need to change hypervisor CR0 because 
     458     * Check if we need to change hypervisor CR0 because
    459459     * of math stuff.
    460460     */
     
    464464        if (!(pVM->cpum.s.fUseFlags & CPUM_USED_FPU))
    465465        {
    466             /* 
    467              * We haven't saved the host FPU state yet, so TS and MT are both set 
     466            /*
     467             * We haven't saved the host FPU state yet, so TS and MT are both set
    468468             * and EM should be reflecting the guest EM (it always does this).
    469469             */
     
    490490        {
    491491            /*
    492              * Already saved the state, so we're just mirroring 
     492             * Already saved the state, so we're just mirroring
    493493             * the guest flags.
    494494             */
    495495            uint32_t HyperCR0 = ASMGetCR0();
    496             AssertMsg(     (HyperCR0               & (X86_CR0_TS | X86_CR0_EM | X86_CR0_MP)) 
    497                       ==   (pVM->cpum.s.Guest.cr0  & (X86_CR0_TS | X86_CR0_EM | X86_CR0_MP)), 
     496            AssertMsg(     (HyperCR0               & (X86_CR0_TS | X86_CR0_EM | X86_CR0_MP))
     497                      ==   (pVM->cpum.s.Guest.cr0  & (X86_CR0_TS | X86_CR0_EM | X86_CR0_MP)),
    498498                      ("%#x %#x\n", HyperCR0, pVM->cpum.s.Guest.cr0));
    499499            HyperCR0 &= ~(X86_CR0_TS | X86_CR0_EM | X86_CR0_MP);
     
    503503        }
    504504    }
    505 #endif 
    506 
    507     /* 
    508      * Check for changes causing TLB flushes (for REM). 
    509      * The caller is responsible for calling PGM when appropriate. 
     505#endif
     506
     507    /*
     508     * Check for changes causing TLB flushes (for REM).
     509     * The caller is responsible for calling PGM when appropriate.
    510510     */
    511511    if (    (cr0                   & (X86_CR0_PG | X86_CR0_WP | X86_CR0_PE))
     
    15001500}
    15011501
     1502
     1503#ifndef IN_RING3
    15021504/**
    15031505 * Lazily sync in the FPU/XMM state
     
    15111513}
    15121514
     1515
    15131516/**
    15141517 * Restore host FPU/XMM state
     
    15221525    return CPUMRestoreHostFPUStateAsm(&pVM->cpum.s);
    15231526}
     1527#endif /* !IN_RING3 */
     1528
    15241529
    15251530/**
     
    15341539}
    15351540
     1541
    15361542/**
    15371543 * Deactivate the FPU/XMM state of the guest OS
     
    15421548    pVM->cpum.s.fUseFlags &= ~CPUM_USED_FPU;
    15431549}
     1550
    15441551
    15451552/**
     
    15541561}
    15551562
     1563
    15561564/**
    15571565 * Checks if the hidden selector registers are valid
     
    15631571    pVM->cpum.s.fValidHiddenSelRegs = fValid;
    15641572}
     1573
    15651574
    15661575/**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette