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_i960.c,v 1.4 2005/11/13 00:14:07 debug Exp $ |
* $Id: cpu_i960.c,v 1.9 2006/06/16 18:31:25 debug Exp $ |
29 |
* |
* |
30 |
* Intel i960 CPU emulation. |
* Intel i960 CPU emulation. |
31 |
*/ |
*/ |
149 |
|
|
150 |
|
|
151 |
/* |
/* |
152 |
|
* i960_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 i960_cpu_tlbdump(struct machine *m, int x, int rawflag) |
161 |
|
{ |
162 |
|
} |
163 |
|
|
164 |
|
|
165 |
|
/* |
166 |
|
* i960_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 *i960_cpu_gdb_stub(struct cpu *cpu, char *cmd) |
172 |
|
{ |
173 |
|
fatal("i960_cpu_gdb_stub(): TODO\n"); |
174 |
|
return NULL; |
175 |
|
} |
176 |
|
|
177 |
|
|
178 |
|
/* |
179 |
* i960_cpu_interrupt(): |
* i960_cpu_interrupt(): |
180 |
*/ |
*/ |
181 |
int i960_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr) |
int i960_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr) |
216 |
* cpu->pc for relative addresses. |
* cpu->pc for relative addresses. |
217 |
*/ |
*/ |
218 |
int i960_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib, |
int i960_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib, |
219 |
int running, uint64_t dumpaddr, int bintrans) |
int running, uint64_t dumpaddr) |
220 |
{ |
{ |
221 |
uint64_t offset; |
uint64_t offset; |
222 |
int len = 0; |
int len = 0; |