25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_avr.c,v 1.22 2006/12/30 13:30:53 debug Exp $ |
* $Id: cpu_avr.c,v 1.23 2007/03/26 02:01:35 debug Exp $ |
29 |
* |
* |
30 |
* Atmel AVR (8-bit) CPU emulation. |
* Atmel AVR (8-bit) CPU emulation. |
31 |
*/ |
*/ |
198 |
} |
} |
199 |
|
|
200 |
|
|
|
/* |
|
|
* avr_cpu_gdb_stub(): |
|
|
* |
|
|
* Execute a "remote GDB" command. Returns a newly allocated response string |
|
|
* on success, NULL on failure. |
|
|
*/ |
|
|
char *avr_cpu_gdb_stub(struct cpu *cpu, char *cmd) |
|
|
{ |
|
|
fatal("avr_cpu_gdb_stub(): TODO\n"); |
|
|
return NULL; |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
* avr_cpu_interrupt(): |
|
|
*/ |
|
|
int avr_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr) |
|
|
{ |
|
|
fatal("avr_cpu_interrupt(): TODO\n"); |
|
|
return 0; |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
* avr_cpu_interrupt_ack(): |
|
|
*/ |
|
|
int avr_cpu_interrupt_ack(struct cpu *cpu, uint64_t irq_nr) |
|
|
{ |
|
|
/* fatal("avr_cpu_interrupt_ack(): TODO\n"); */ |
|
|
return 0; |
|
|
} |
|
|
|
|
|
|
|
201 |
/* Helper functions: */ |
/* Helper functions: */ |
202 |
static void print_two(unsigned char *instr, int *len) |
static void print_two(unsigned char *instr, int *len) |
203 |
{ debug(" %02x %02x", instr[*len], instr[*len+1]); (*len) += 2; } |
{ debug(" %02x %02x", instr[*len], instr[*len+1]); (*len) += 2; } |