VirtualBox

Changeset 12421 in vbox for trunk


Ignore:
Timestamp:
Sep 12, 2008 1:17:34 PM (16 years ago)
Author:
vboxsync
Message:

Fixed 64 bits displacements. (see #3096)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/target-i386/translate.c

    r11982 r12421  
    15621562                gen_op_movq_A0_reg[base]();
    15631563                if (disp != 0) {
    1564                     if ((int32_t)disp == disp)
    1565                         gen_op_addq_A0_im(disp);
    1566                     else
    1567                         gen_op_addq_A0_im64(disp >> 32, disp);
     1564                    gen_op_addq_A0_im(disp);
    15681565                }
    15691566            } else
     
    15771574#ifdef TARGET_X86_64
    15781575            if (s->aflag == 2) {
    1579                 if ((int32_t)disp == disp)
    1580                     gen_op_movq_A0_im(disp);
    1581                 else
    1582                     gen_op_movq_A0_im64(disp >> 32, disp);
     1576                gen_op_movq_A0_im(disp);
    15831577            } else
    15841578#endif
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