VirtualBox

Ignore:
Timestamp:
Jun 29, 2011 4:01:23 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72549
Message:

recompiler: Merged in changes from 0.13.0.

File:
1 edited

Legend:

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

    r36175 r37689  
    4040#include "disas.h"
    4141#include "tcg.h"
     42#include "qemu-timer.h"
    4243
    4344/* code generation context */
     
    5051uint16_t gen_opc_icount[OPC_BUF_SIZE];
    5152uint8_t gen_opc_instr_start[OPC_BUF_SIZE];
    52 #if defined(TARGET_I386)
    53 uint8_t gen_opc_cc_op[OPC_BUF_SIZE];
    54 #elif defined(TARGET_SPARC)
    55 target_ulong gen_opc_npc[OPC_BUF_SIZE];
    56 target_ulong gen_opc_jump_pc[2];
    57 #elif defined(TARGET_MIPS) || defined(TARGET_SH4)
    58 uint32_t gen_opc_hflags[OPC_BUF_SIZE];
    59 #endif
    60 
    61 /* XXX: suppress that */
    62 unsigned long code_gen_max_block_size(void)
    63 {
    64 #ifdef VBOX
    65     /* Just to suppress a lot of dummy warnings */
    66     static long max;
    67 #else
    68     static unsigned long max;
    69 #endif
    70 
    71     if (max == 0) {
    72         max = TCG_MAX_OP_SIZE;
    73 #define DEF(s, n, copy_size) max = copy_size > max? copy_size : max;
    74 #include "tcg-opc.h"
    75 #undef DEF
    76         max *= OPC_MAX_SIZE;
    77     }
    78 
    79     return max;
    80 }
    8153
    8254void cpu_gen_init(void)
     
    12496    s->tb_jmp_offset = tb->tb_jmp_offset;
    12597    s->tb_next = NULL;
    126     /* the following two entries are optional (only used for string ops) */
    127     /* XXX: not used ? */
    128     tb->tb_jmp_offset[2] = 0xffff;
    129     tb->tb_jmp_offset[3] = 0xffff;
    13098#else
    13199    s->tb_jmp_offset = NULL;
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