VirtualBox

Changeset 37697 in vbox for trunk/src/recompiler/tcg/i386


Ignore:
Timestamp:
Jun 29, 2011 7:06:12 PM (14 years ago)
Author:
vboxsync
Message:

duh.

File:
1 edited

Legend:

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

    r37696 r37697  
    464464               the 32-bit-mode absolute addressing encoding.  */
    465465#ifdef VBOX
    466             tcg_target_long pc = (tcg_target_long)s->code_ptr + tcg_calc_opc_len(s, opc, r, 0, 0) + 5;
     466            tcg_target_long pc = (tcg_target_long)s->code_ptr
     467                               + tcg_calc_opc_len(s, opc, r, 0, 0) + 1 + 4;
    467468#else
    468469            tcg_target_long pc = (tcg_target_long)s->code_ptr + 5 + ~rm;
     
    993994#ifdef VBOX
    994995    tcg_target_long disp = dest - (tcg_target_long)s->code_ptr
    995                          - tcg_calc_opc_len(s, call ? OPC_CALL_Jz : OPC_JMP_long, 0, 0, 0);
     996                         - tcg_calc_opc_len(s, call ? OPC_CALL_Jz : OPC_JMP_long, 0, 0, 0)
     997                         - 4;
    996998#else
    997999    tcg_target_long disp = dest - (tcg_target_long)s->code_ptr - 5;
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