--- trunk/src/cpus/cpu_ia64.c 2007/10/08 16:19:43 23 +++ trunk/src/cpus/cpu_ia64.c 2007/10/08 16:19:56 24 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005 Anders Gavare. All rights reserved. + * Copyright (C) 2005-2006 Anders Gavare. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $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 $ * * IA64 CPU emulation. * @@ -70,6 +70,8 @@ debug("%s", cpu->name); } + ia64_init_64bit_dummy_tables(cpu); + return 1; } @@ -138,7 +140,7 @@ if (gprs) { symbol = get_symbol_name(&cpu->machine->symbol_context, cpu->pc, &offset); - 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); debug(" <%s>\n", symbol != NULL? symbol : " no symbol "); /* TODO */ @@ -147,6 +149,33 @@ /* + * mips_cpu_tlbdump(): + * + * Called from the debugger to dump the TLB in a readable format. + * x is the cpu number to dump, or -1 to dump all CPUs. + * + * If rawflag is nonzero, then the TLB contents isn't formated nicely, + * just dumped. + */ +void ia64_cpu_tlbdump(struct machine *m, int x, int rawflag) +{ +} + + +/* + * ia64_cpu_gdb_stub(): + * + * Execute a "remote GDB" command. Returns a newly allocated response string + * on success, NULL on failure. + */ +char *ia64_cpu_gdb_stub(struct cpu *cpu, char *cmd) +{ + fatal("ia64_cpu_gdb_stub(): TODO\n"); + return NULL; +} + + +/* * ia64_cpu_interrupt(): */ int ia64_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr) @@ -179,7 +208,7 @@ * cpu->pc for relative addresses. */ int ia64_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib, - int running, uint64_t dumpaddr, int bintrans) + int running, uint64_t dumpaddr) { uint64_t offset; char *symbol; @@ -195,7 +224,7 @@ if (cpu->machine->ncpus > 1 && running) debug("cpu%i:\t", cpu->cpu_id); - debug("%016llx: ", (long long)dumpaddr); + debug("%016"PRIx64": ", (uint64_t) dumpaddr); debug("TODO\n");