VirtualBox

Changeset 87960 in vbox


Ignore:
Timestamp:
Mar 4, 2021 8:28:57 PM (4 years ago)
Author:
vboxsync
Message:

DevHDA: Hacks for logging CS:RIP & RFLAGS for MMIO accesses (disabled). bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevHDA.cpp

    r87950 r87960  
    2929#include <VBox/vmm/pdmdev.h>
    3030#include <VBox/vmm/pdmaudioifs.h>
     31#ifdef HDA_DEBUG_GUEST_RIP
     32# include <VBox/vmm/cpum.h>
     33#endif
    3134#include <VBox/version.h>
    3235#include <VBox/AssertGuest.h>
     
    29622965    unsigned const  cbLog     = cb;
    29632966    uint32_t        offRegLog = (uint32_t)off;
     2967# ifdef HDA_DEBUG_GUEST_RIP
     2968    if (LogIs6Enabled())
     2969    {
     2970        PVMCPU pVCpu = (PVMCPU)PDMDevHlpGetVMCPU(pDevIns);
     2971        Log6Func(("cs:rip=%04x:%016RX64 rflags=%08RX32\n", CPUMGetGuestCS(pVCpu), CPUMGetGuestRIP(pVCpu), CPUMGetGuestEFlags(pVCpu)));
     2972    }
     2973# endif
    29642974#endif
    29652975
     
    31603170#ifdef LOG_ENABLED
    31613171    uint32_t const u32LogOldValue = idxRegDsc >= 0 ? pThis->au32Regs[idxRegMem] : UINT32_MAX;
     3172# ifdef HDA_DEBUG_GUEST_RIP
     3173    if (LogIs6Enabled())
     3174    {
     3175        PVMCPU pVCpu = (PVMCPU)PDMDevHlpGetVMCPU(pDevIns);
     3176        Log6Func(("cs:rip=%04x:%016RX64 rflags=%08RX32\n", CPUMGetGuestCS(pVCpu), CPUMGetGuestRIP(pVCpu), CPUMGetGuestEFlags(pVCpu)));
     3177    }
     3178# endif
    31623179#endif
    31633180
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