VirtualBox

Ignore:
Timestamp:
Mar 3, 2011 1:48:16 PM (14 years ago)
Author:
vboxsync
Message:

rem: Re-synced to svn://svn.savannah.nongnu.org/qemu/trunk@5495 (repo UUID c046a42c-6fe2-441c-8c8c-71466251a162).

File:
1 edited

Legend:

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

    r33656 r36140  
    3232#include <stdio.h>
    3333#include <string.h>
     34#include <inttypes.h>
    3435
    3536#include "config.h"
     
    5556target_ulong gen_opc_npc[OPC_BUF_SIZE];
    5657target_ulong gen_opc_jump_pc[2];
    57 #elif defined(TARGET_MIPS)
     58#elif defined(TARGET_MIPS) || defined(TARGET_SH4)
    5859uint32_t gen_opc_hflags[OPC_BUF_SIZE];
    5960#endif
     
    7172    if (max == 0) {
    7273        max = TCG_MAX_OP_SIZE;
    73 #define DEF(s, n, copy_size) max = (copy_size > max) ? copy_size : max;
     74#define DEF(s, n, copy_size) max = copy_size > max? copy_size : max;
    7475#include "tcg-opc.h"
    7576#undef DEF
     
    8081}
    8182
    82 void cpu_gen_init()
     83void cpu_gen_init(void)
    8384{
    8485    tcg_context_init(&tcg_ctx);
     
    9394   code).
    9495*/
    95 int cpu_gen_code(CPUState *env, TranslationBlock *tb,
    96                  int *gen_code_size_ptr)
     96int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr)
    9797{
    9898    TCGContext *s = &tcg_ctx;
     
    111111#ifdef VBOX
    112112    RAWEx_ProfileStart(env, STATS_QEMU_COMPILATION);
     113#endif
     114
    113115    tcg_func_start(s);
    114116
    115117    gen_intermediate_code(env, tb);
    116 #else /* !VBOX */
    117     tcg_func_start(s);
    118 
    119     gen_intermediate_code(env, tb);
    120 #endif /* !VBOX */
    121118
    122119    /* generate machine code */
     
    129126    s->tb_next = NULL;
    130127    /* the following two entries are optional (only used for string ops) */
     128    /* XXX: not used ? */
    131129    tb->tb_jmp_offset[2] = 0xffff;
    132130    tb->tb_jmp_offset[3] = 0xffff;
     
    141139    s->code_time -= profile_getclock();
    142140#endif
    143 
    144141    gen_code_size = dyngen_code(s, gen_code_buf);
    145142    *gen_code_size_ptr = gen_code_size;
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