1 |
/* |
/* |
2 |
* Copyright (C) 2005 Anders Gavare. All rights reserved. |
* Copyright (C) 2005-2006 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_ia64.c,v 1.4 2006/02/09 22:40:27 debug Exp $ |
* $Id: cpu_ia64.c,v 1.11 2006/06/16 18:31:25 debug Exp $ |
29 |
* |
* |
30 |
* IA64 CPU emulation. |
* IA64 CPU emulation. |
31 |
* |
* |
70 |
debug("%s", cpu->name); |
debug("%s", cpu->name); |
71 |
} |
} |
72 |
|
|
73 |
|
ia64_init_64bit_dummy_tables(cpu); |
74 |
|
|
75 |
return 1; |
return 1; |
76 |
} |
} |
77 |
|
|
140 |
if (gprs) { |
if (gprs) { |
141 |
symbol = get_symbol_name(&cpu->machine->symbol_context, |
symbol = get_symbol_name(&cpu->machine->symbol_context, |
142 |
cpu->pc, &offset); |
cpu->pc, &offset); |
143 |
debug("cpu%i:\t pc = 0x%016llx", x, (long long)cpu->pc); |
debug("cpu%i:\t pc = 0x%016"PRIx64, x, (uint64_t)cpu->pc); |
144 |
debug(" <%s>\n", symbol != NULL? symbol : " no symbol "); |
debug(" <%s>\n", symbol != NULL? symbol : " no symbol "); |
145 |
|
|
146 |
/* TODO */ |
/* TODO */ |
149 |
|
|
150 |
|
|
151 |
/* |
/* |
152 |
|
* mips_cpu_tlbdump(): |
153 |
|
* |
154 |
|
* Called from the debugger to dump the TLB in a readable format. |
155 |
|
* x is the cpu number to dump, or -1 to dump all CPUs. |
156 |
|
* |
157 |
|
* If rawflag is nonzero, then the TLB contents isn't formated nicely, |
158 |
|
* just dumped. |
159 |
|
*/ |
160 |
|
void ia64_cpu_tlbdump(struct machine *m, int x, int rawflag) |
161 |
|
{ |
162 |
|
} |
163 |
|
|
164 |
|
|
165 |
|
/* |
166 |
|
* ia64_cpu_gdb_stub(): |
167 |
|
* |
168 |
|
* Execute a "remote GDB" command. Returns a newly allocated response string |
169 |
|
* on success, NULL on failure. |
170 |
|
*/ |
171 |
|
char *ia64_cpu_gdb_stub(struct cpu *cpu, char *cmd) |
172 |
|
{ |
173 |
|
fatal("ia64_cpu_gdb_stub(): TODO\n"); |
174 |
|
return NULL; |
175 |
|
} |
176 |
|
|
177 |
|
|
178 |
|
/* |
179 |
* ia64_cpu_interrupt(): |
* ia64_cpu_interrupt(): |
180 |
*/ |
*/ |
181 |
int ia64_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr) |
int ia64_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr) |
208 |
* cpu->pc for relative addresses. |
* cpu->pc for relative addresses. |
209 |
*/ |
*/ |
210 |
int ia64_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib, |
int ia64_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib, |
211 |
int running, uint64_t dumpaddr, int bintrans) |
int running, uint64_t dumpaddr) |
212 |
{ |
{ |
213 |
uint64_t offset; |
uint64_t offset; |
214 |
char *symbol; |
char *symbol; |
224 |
if (cpu->machine->ncpus > 1 && running) |
if (cpu->machine->ncpus > 1 && running) |
225 |
debug("cpu%i:\t", cpu->cpu_id); |
debug("cpu%i:\t", cpu->cpu_id); |
226 |
|
|
227 |
debug("%016llx: ", (long long)dumpaddr); |
debug("%016"PRIx64": ", (uint64_t) dumpaddr); |
228 |
|
|
229 |
debug("TODO\n"); |
debug("TODO\n"); |
230 |
|
|