VirtualBox

Changeset 37702 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jun 30, 2011 10:09:59 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72562
Message:

REM/VMM: Don't flush the TLB if you don't hold the EM/REM lock, some other EMT may be executing code in the recompiler and could be really surprised by a TLB flush.

Location:
trunk/include/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/dis.h

    r33540 r37702  
    3232
    3333#if defined(__L4ENV__)
    34 #include <setjmp.h>
     34# include <setjmp.h>
    3535#endif
    3636
     
    368368 * Operand Parameter.
    369369 */
    370 typedef struct _OP_PARAMETER
     370typedef struct OP_PARAMETER
    371371{
    372372    /** @todo switch param and parval and move disp64 and flags up here with the other 64-bit vars to get more natural alignment and save space. */
     
    416416
    417417
    418 struct _OPCODE;
    419418/** Pointer to opcode. */
    420 typedef struct _OPCODE *POPCODE;
     419typedef struct OPCODE *POPCODE;
    421420/** Pointer to const opcode. */
    422 typedef const struct _OPCODE *PCOPCODE;
     421typedef const struct OPCODE *PCOPCODE;
    423422
    424423typedef DECLCALLBACK(int) FN_DIS_READBYTES(RTUINTPTR pSrc, uint8_t *pDest, unsigned size, void *pvUserdata);
    425424typedef FN_DIS_READBYTES *PFN_DIS_READBYTES;
    426 
    427 /* forward decl */
    428 struct _DISCPUSTATE;
    429 /** Pointer to the disassembler CPU state. */
    430 typedef struct _DISCPUSTATE *PDISCPUSTATE;
    431425
    432426/** Parser callback.
     
    435429typedef FNDISPARSE *PFNDISPARSE;
    436430
    437 typedef struct _DISCPUSTATE
     431typedef struct DISCPUSTATE
    438432{
    439433    /* Global setting */
     
    513507} DISCPUSTATE;
    514508
    515 /** Pointer to a const disassembler CPU state. */
    516 typedef DISCPUSTATE const *PCDISCPUSTATE;
    517 
    518509/** The storage padding sufficient to hold the largest DISCPUSTATE in all
    519510 * contexts (R3, R0 and RC). Used various places in the VMM internals.   */
     
    522513/** Opcode. */
    523514#pragma pack(4)
    524 typedef struct _OPCODE
     515typedef struct OPCODE
    525516{
    526517#ifndef DIS_CORE_ONLY
  • trunk/include/VBox/types.h

    r36761 r37702  
    10541054} CPUMMODE;
    10551055
     1056
     1057/** Pointer to the disassembler CPU state. */
     1058typedef struct DISCPUSTATE *PDISCPUSTATE;
     1059/** Pointer to a const disassembler CPU state. */
     1060typedef struct DISCPUSTATE const *PCDISCPUSTATE;
     1061
     1062
    10561063/** @} */
    10571064
  • trunk/include/VBox/vmm/em.h

    r35361 r37702  
    2929#include <VBox/types.h>
    3030#include <VBox/vmm/trpm.h>
    31 #include <VBox/dis.h>
    3231
    3332
     
    189188VMMDECL(void)       EMRemLock(PVM pVM);
    190189VMMDECL(bool)       EMRemIsLockOwner(PVM pVM);
    191 VMMDECL(int)        EMTryEnterRemLock(PVM pVM);
     190VMMDECL(int)        EMRemTryLock(PVM pVM);
    192191/** @} */
    193192
Note: See TracChangeset for help on using the changeset viewer.

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