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 |
*/ |
*/ |
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" |
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... */ |