Revision 5fafdf24 target-mips/translate.c

b/target-mips/translate.c
1 1
/*
2 2
 *  MIPS32 emulation for qemu: main translation routines.
3
 * 
3
 *
4 4
 *  Copyright (c) 2004-2005 Jocelyn Mayer
5 5
 *  Copyright (c) 2006 Marius Groeger (FPU operations)
6 6
 *  Copyright (c) 2006 Thiemo Seufer (MIPS32R2 support)
......
6514 6514
        fprintf(logfile, "---------------- %d %08x\n", ctx.bstate, ctx.hflags);
6515 6515
    }
6516 6516
#endif
6517
    
6517
   
6518 6518
    return 0;
6519 6519
}
6520 6520

  
......
6528 6528
    return gen_intermediate_code_internal(env, tb, 1);
6529 6529
}
6530 6530

  
6531
void fpu_dump_state(CPUState *env, FILE *f, 
6531
void fpu_dump_state(CPUState *env, FILE *f,
6532 6532
                    int (*fpu_fprintf)(FILE *f, const char *fmt, ...),
6533 6533
                    int flags)
6534 6534
{
......
6568 6568

  
6569 6569
void dump_fpu (CPUState *env)
6570 6570
{
6571
    if (loglevel) { 
6571
    if (loglevel) {
6572 6572
       fprintf(logfile, "pc=0x" TARGET_FMT_lx " HI=0x" TARGET_FMT_lx " LO=0x" TARGET_FMT_lx " ds %04x " TARGET_FMT_lx " %d\n",
6573 6573
               env->PC[env->current_tc], env->HI[0][env->current_tc], env->LO[0][env->current_tc], env->hflags, env->btarget, env->bcond);
6574 6574
       fpu_dump_state(env, logfile, fprintf, 0);
......
6608 6608
}
6609 6609
#endif
6610 6610

  
6611
void cpu_dump_state (CPUState *env, FILE *f, 
6611
void cpu_dump_state (CPUState *env, FILE *f,
6612 6612
                     int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
6613 6613
                     int flags)
6614 6614
{
6615 6615
    int i;
6616
    
6616
   
6617 6617
    cpu_fprintf(f, "pc=0x" TARGET_FMT_lx " HI=0x" TARGET_FMT_lx " LO=0x" TARGET_FMT_lx " ds %04x " TARGET_FMT_lx " %d\n",
6618 6618
                env->PC[env->current_tc], env->HI[env->current_tc], env->LO[env->current_tc], env->hflags, env->btarget, env->bcond);
6619 6619
    for (i = 0; i < 32; i++) {

Also available in: Unified diff