VirtualBox

Changeset 54999 in vbox


Ignore:
Timestamp:
Mar 29, 2015 3:04:02 PM (10 years ago)
Author:
vboxsync
Message:

Moved the XState to the end of the CPUMCTX structure, reducing the size of the three VMM modules by ~8KB in a win.amd6/debug build.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.mac

    r54898 r54999  
    136136
    137137struc CPUMCTX
    138     .XState             resb    XSTATE_SIZE
    139138    .eax                resq    1
    140139    .ecx                resq    1
     
    236235    .msrApicBase        resb    8
    237236    .au32SizePadding    resb    24
     237    .XState             resb    XSTATE_SIZE
    238238endstruc
    239239
  • trunk/include/VBox/vmm/cpumctx.h

    r54898 r54999  
    247247typedef struct CPUMCTX
    248248{
    249     /** FPU state. (16-byte alignment)
    250      * @todo This doesn't have to be in X86FXSTATE on CPUs without fxsr - we need a type for the
    251      *       actual format or convert it (waste of time).  */
    252     X86XSAVEAREA        XState;
    253 
    254249    /** CPUMCTXCORE Part.
    255250     * @{ */
     
    406401    /** Size padding. */
    407402    uint32_t        au32SizePadding[6];
     403
     404    /** FPU state. (16-byte alignment)
     405     * @todo This doesn't have to be in X86FXSTATE on CPUs without fxsr - we need a type for the
     406     *       actual format or convert it (waste of time).  */
     407    X86XSAVEAREA        XState;
    408408} CPUMCTX;
    409409#pragma pack()
  • trunk/src/VBox/VMM/include/CPUMInternal.mac

    r54898 r54999  
    126126    ; (Identical to the .Hyper chunk below.)
    127127    ;
    128     alignb 64
    129     .Guest.XState             resb    XSTATE_SIZE
    130128    .Guest.eax                resq    1
    131129    .Guest.ecx                resq    1
     
    226224    .Guest.msrKERNELGSBASE    resb    8
    227225    .Guest.msrApicBase        resb    8
    228 
     226    alignb 64
     227    .Guest.XState             resb    XSTATE_SIZE
    229228
    230229    alignb 64
     
    368367    ;
    369368    alignb 64
    370     .Hyper.XState             resb    XSTATE_SIZE
    371369    .Hyper.eax                resq    1
    372370    .Hyper.ecx                resq    1
     
    468466    .Hyper.msrApicBase        resb    8
    469467    alignb 64
     468    .Hyper.XState             resb    XSTATE_SIZE
    470469
    471470%ifdef VBOX_WITH_CRASHDUMP_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