Rev 3790 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3790 | Rev 4132 | ||
|---|---|---|---|
| Line 38... | Line 38... | ||
| 38 | #include <arch/interrupt.h> |
38 | #include <arch/interrupt.h> |
| 39 | #include <interrupt.h> |
39 | #include <interrupt.h> |
| 40 | #include <arch/asm.h> |
40 | #include <arch/asm.h> |
| 41 | #include <arch/register.h> |
41 | #include <arch/register.h> |
| 42 | #include <debug.h> |
42 | #include <debug.h> |
| 43 | #include <symtab.h> |
- | |
| 44 | #include <print.h> |
43 | #include <print.h> |
| 45 | 44 | ||
| - | 45 | #ifdef CONFIG_SYMTAB |
|
| - | 46 | #include <symtab.h> |
|
| - | 47 | #endif |
|
| - | 48 | ||
| 46 | void dump_istate(istate_t *istate) |
49 | void dump_istate(istate_t *istate) |
| 47 | { |
50 | { |
| - | 51 | char *tpcs, *tnpcs; |
|
| - | 52 | ||
| - | 53 | #ifdef CONFIG_SYMTAB |
|
| - | 54 | tpcs = get_symtab_entry(istate->tpc); |
|
| - | 55 | tnpcs = get_symtab_entry(istate->tnpc); |
|
| - | 56 | #else |
|
| - | 57 | tpcs = tnpcs = "n/a"; |
|
| - | 58 | #endif |
|
| 48 | printf("TSTATE=%#" PRIx64 "\n", istate->tstate); |
59 | printf("TSTATE=%#" PRIx64 "\n", istate->tstate); |
| 49 | printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, get_symtab_entry(istate->tpc)); |
60 | printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, tpcs); |
| 50 | printf("TNPC=%#" PRIx64 " (%s)\n", istate->tnpc, get_symtab_entry(istate->tnpc)); |
61 | printf("TNPC=%#" PRIx64 " (%s)\n", istate->tnpc, tnpcs); |
| 51 | } |
62 | } |
| 52 | 63 | ||
| 53 | /** Handle instruction_access_exception. (0x8) */ |
64 | /** Handle instruction_access_exception. (0x8) */ |
| 54 | void instruction_access_exception(int n, istate_t *istate) |
65 | void instruction_access_exception(int n, istate_t *istate) |
| 55 | { |
66 | { |