VirtualBox

Changeset 103596 in vbox


Ignore:
Timestamp:
Feb 28, 2024 2:59:42 PM (7 months ago)
Author:
vboxsync
Message:

VMM/IEM: Fix emitters for IEM_MC_FETCH_FCW()/IEM_MC_FETCH_FSW(), the destination is a variable index and not a register index, need to get one from first, bugref:10371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllN8veRecompiler.cpp

    r103592 r103596  
    1337413374
    1337513375    /* Allocate a temporary FCW register. */
     13376    uint8_t const idxReg = iemNativeVarRegisterAcquire(pReNative, idxDstVar, &off, false /*fInitialized*/);
    1337613377    uint8_t const idxFcwReg = iemNativeRegAllocTmpForGuestReg(pReNative, &off, kIemNativeGstReg_FpuFcw, kIemNativeGstRegUse_ReadOnly);
    1337713378
    13378     off = iemNativeEmitLoadGprFromGpr16(pReNative, off, idxDstVar, idxFcwReg);
     13379    off = iemNativeEmitLoadGprFromGpr16(pReNative, off, idxReg, idxFcwReg);
    1337913380
    1338013381    /* Free but don't flush the FCW register. */
     
    1339613397
    1339713398    /* Allocate a temporary FSW register. */
     13399    uint8_t const idxReg = iemNativeVarRegisterAcquire(pReNative, idxDstVar, &off, false /*fInitialized*/);
    1339813400    uint8_t const idxFswReg = iemNativeRegAllocTmpForGuestReg(pReNative, &off, kIemNativeGstReg_FpuFsw, kIemNativeGstRegUse_ReadOnly);
    1339913401
    13400     off = iemNativeEmitLoadGprFromGpr16(pReNative, off, idxDstVar, idxFswReg);
     13402    off = iemNativeEmitLoadGprFromGpr16(pReNative, off, idxReg, idxFswReg);
    1340113403
    1340213404    /* Free but don't flush the FSW register. */
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