VirtualBox

Changeset 42720 in vbox for trunk


Ignore:
Timestamp:
Aug 9, 2012 5:25:25 PM (12 years ago)
Author:
vboxsync
Message:

IEM: Fixed BSF and BSR bug where they would set the destination register when the source was zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllAImpl.asm

    r42699 r42720  
    523523        IEM_MAYBE_LOAD_FLAGS           A2, %2, %3
    524524        %1      T0_16, A1_16
     525        jz      .unchanged_dst
    525526        mov     [A0], T0_16
     527.unchanged_dst:
    526528        IEM_SAVE_FLAGS                 A2, %2, %3
    527529        EPILOGUE_3_ARGS
     
    532534        IEM_MAYBE_LOAD_FLAGS           A2, %2, %3
    533535        %1      T0_32, A1_32
     536        jz      .unchanged_dst
    534537        mov     [A0], T0_32
     538.unchanged_dst:
    535539        IEM_SAVE_FLAGS                 A2, %2, %3
    536540        EPILOGUE_3_ARGS
     
    542546        IEM_MAYBE_LOAD_FLAGS           A2, %2, %3
    543547        %1      T0, A1
     548        jz      .unchanged_dst
    544549        mov     [A0], T0
     550.unchanged_dst:
    545551        IEM_SAVE_FLAGS                 A2, %2, %3
    546552        EPILOGUE_3_ARGS_EX 8
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