VirtualBox

Changeset 42601 in vbox for trunk/src/recompiler/target-i386


Ignore:
Timestamp:
Aug 5, 2012 4:26:25 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79786
Message:

REM: Initial changes to make it work (seemingly) with MinGW-w64.

Location:
trunk/src/recompiler/target-i386
Files:
2 edited

Legend:

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

    r42488 r42601  
    56435643    TranslationBlock *tb;
    56445644    int ret;
    5645     unsigned long pc;
     5645    uintptr_t pc;
    56465646    CPUX86State *saved_env;
    56475647
     
    56555655        if (retaddr) {
    56565656            /* now we have a real cpu fault */
    5657             pc = (unsigned long)retaddr;
     5657            pc = (uintptr_t)retaddr;
    56585658            tb = tb_find_pc(pc);
    56595659            if (tb) {
     
    58455845DECLINLINE(void) tb_reset_jump(TranslationBlock *tb, int n)
    58465846{
    5847     tb_set_jmp_target(tb, n, (unsigned long)(tb->tc_ptr + tb->tb_next_offset[n]));
     5847    tb_set_jmp_target(tb, n, (uintptr_t)(tb->tc_ptr + tb->tb_next_offset[n]));
    58485848}
    58495849
  • trunk/src/recompiler/target-i386/translate.c

    r40360 r42601  
    24802480        tcg_gen_goto_tb(tb_num);
    24812481        gen_jmp_im(eip);
    2482         tcg_gen_exit_tb((long)tb + tb_num);
     2482        tcg_gen_exit_tb((intptr_t)tb + tb_num);
    24832483    } else {
    24842484        /* jump to another page: currently not optimized */
     
    83648364
    83658365void gen_pc_load(CPUState *env, TranslationBlock *tb,
    8366                 unsigned long searched_pc, int pc_pos, void *puc)
     8366                 uintptr_t searched_pc, int pc_pos, void *puc)
    83678367{
    83688368    int cc_op;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette