VirtualBox

Changeset 181 in vbox for trunk/src/VBox/VMM/PATM/PATMA.asm


Ignore:
Timestamp:
Jan 19, 2007 3:19:17 PM (18 years ago)
Author:
vboxsync
Message:

Log all popf replacements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/PATMA.asm

    r160 r181  
    594594PATMPopf32Start:
    595595    mov     dword [ss:PATM_INTERRUPTFLAG], 0
     596%ifdef PATM_LOG_IF_CHANGES
     597    push    eax
     598    push    ecx
     599    mov     eax, PATM_ACTION_LOG_POPF_IF1
     600    test    dword [esp+8], X86_EFL_IF
     601    jnz     PATMPopf32_Log
     602    mov     eax, PATM_ACTION_LOG_POPF_IF0
     603
     604PATMPopf32_Log:
     605    lock    or dword [ss:PATM_PENDINGACTION], eax
     606    mov     ecx, PATM_ACTION_MAGIC
     607    db      0fh, 0bh        ; illegal instr (hardcoded assumption in PATMHandleIllegalInstrTrap)
     608    pop     ecx
     609    pop     eax
     610%endif
     611
    596612    test    dword [esp], X86_EFL_IF
    597613    jnz     PATMPopf32_Ok
     
    638654    DD      0
    639655    DD      PATMPopf32End - PATMPopf32Start
     656%ifdef PATM_LOG_IF_CHANGES
     657    DD      13
     658%else
    640659    DD      12
    641     DD      PATM_INTERRUPTFLAG
    642     DD      0
     660%endif
     661    DD      PATM_INTERRUPTFLAG
     662    DD      0
     663%ifdef PATM_LOG_IF_CHANGES
     664    DD      PATM_PENDINGACTION
     665    DD      0
     666%endif
    643667    DD      PATM_INTERRUPTFLAG
    644668    DD      0
     
    674698    mov     eax, PATM_ACTION_LOG_POPF_IF1
    675699    test    dword [esp+8], X86_EFL_IF
    676     jnz     PATMPopf32_Log
     700    jnz     PATMPopf32_NoExitLog
    677701    mov     eax, PATM_ACTION_LOG_POPF_IF0
    678702
    679 PATMPopf32_Log:
     703PATMPopf32_NoExitLog:
    680704    lock    or dword [ss:PATM_PENDINGACTION], eax
    681705    mov     ecx, PATM_ACTION_MAGIC
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