Rev 324 | Rev 341 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 324 | Rev 332 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | void tlb_refill(struct exception_regdump *pstate) |
38 | void tlb_refill(struct exception_regdump *pstate) |
39 | { |
39 | { |
40 | char *symbol = ""; |
40 | char *symbol = ""; |
41 | char *sym2 = ""; |
41 | char *sym2 = ""; |
42 | 42 | ||
43 | if (THREAD) { |
- | |
44 | char *s = get_symtab_entry(pstate->epc); |
43 | char *s = get_symtab_entry(pstate->epc); |
45 | if (s) |
44 | if (s) |
46 | symbol = s; |
45 | symbol = s; |
47 | s = get_symtab_entry(pstate->ra); |
46 | s = get_symtab_entry(pstate->ra); |
48 | if (s) |
47 | if (s) |
49 | sym2 = s; |
48 | sym2 = s; |
50 | } |
- | |
51 | panic("%X: tlb_refill exception at %X(%s<-%s)\n", cp0_badvaddr_read(), |
49 | panic("%X: tlb_refill exception at %X(%s<-%s)\n", cp0_badvaddr_read(), |
52 | pstate->epc, symbol,sym2); |
50 | pstate->epc, symbol,sym2); |
53 | } |
51 | } |
54 | 52 | ||
55 | void tlb_invalid(struct exception_regdump *pstate) |
53 | void tlb_invalid(struct exception_regdump *pstate) |
56 | { |
54 | { |
57 | char *symbol = ""; |
55 | char *symbol = ""; |
58 | 56 | ||
59 | if (THREAD) { |
- | |
60 | char *s = get_symtab_entry(pstate->epc); |
57 | char *s = get_symtab_entry(pstate->epc); |
61 | if (s) |
58 | if (s) |
62 | symbol = s; |
59 | symbol = s; |
63 | } |
- | |
64 | panic("%X: TLB exception at %X(%s)\n", cp0_badvaddr_read(), |
60 | panic("%X: TLB exception at %X(%s)\n", cp0_badvaddr_read(), |
65 | pstate->epc, symbol); |
61 | pstate->epc, symbol); |
66 | } |
62 | } |
67 | 63 | ||
68 | void tlb_invalidate(int asid) |
64 | void tlb_invalidate(int asid) |