/[gxemul]/trunk/src/cpu_mips.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/cpu_mips.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by dpavlin, Mon Oct 8 16:18:00 2007 UTC revision 6 by dpavlin, Mon Oct 8 16:18:11 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu_mips.c,v 1.39 2005/04/15 21:39:59 debug Exp $   *  $Id: cpu_mips.c,v 1.41 2005/05/29 17:51:46 debug Exp $
29   *   *
30   *  MIPS core CPU emulation.   *  MIPS core CPU emulation.
31   */   */
# Line 34  Line 34 
34  #include <stdlib.h>  #include <stdlib.h>
35  #include <string.h>  #include <string.h>
36  #include <sys/types.h>  #include <sys/types.h>
 #include <sys/time.h>  
 #include <sys/resource.h>  
37  #include <ctype.h>  #include <ctype.h>
38    
39  #include "../config.h"  #include "../config.h"
# Line 1613  void mips_cpu_exception(struct cpu *cpu, Line 1611  void mips_cpu_exception(struct cpu *cpu,
1611                  uint64_t offset;                  uint64_t offset;
1612                  char *symbol = get_symbol_name(&cpu->machine->symbol_context,                  char *symbol = get_symbol_name(&cpu->machine->symbol_context,
1613                      cpu->cd.mips.pc_last, &offset);                      cpu->cd.mips.pc_last, &offset);
1614                  fatal("[ warning: LOW reference vaddr=0x%08x, exception %s, "                  fatal("[ ");
1615                      "pc=%08llx <%s> ]\n", (int)vaddr, exception_names[exccode],                  if (cpu->machine->ncpus > 1)
1616                      (long long)cpu->cd.mips.pc_last,                          fatal("cpu%i: ", cpu->cpu_id);
1617                    fatal("warning: LOW reference vaddr=0x%08llx, exception %s, "
1618                        "pc=%08llx <%s> ]\n", (long long)vaddr,
1619                        exception_names[exccode], (long long)cpu->cd.mips.pc_last,
1620                      symbol? symbol : "(no symbol)");                      symbol? symbol : "(no symbol)");
1621    cpu->running = 0;
1622          }          }
1623    
1624          /*  Clear the exception code bits of the cause register...  */          /*  Clear the exception code bits of the cause register...  */

Legend:
Removed from v.4  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26