Revision 5b50e790 target-m68k/gdbstub.c
b/target-m68k/gdbstub.c | ||
---|---|---|
17 | 17 |
* You should have received a copy of the GNU Lesser General Public |
18 | 18 |
* License along with this library; if not, see <http://www.gnu.org/licenses/>. |
19 | 19 |
*/ |
20 |
#include "config.h" |
|
21 |
#include "qemu-common.h" |
|
22 |
#include "exec/gdbstub.h" |
|
20 | 23 |
|
21 |
static int cpu_gdb_read_register(CPUM68KState *env, uint8_t *mem_buf, int n)
|
|
24 |
int m68k_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
|
|
22 | 25 |
{ |
26 |
M68kCPU *cpu = M68K_CPU(cs); |
|
27 |
CPUM68KState *env = &cpu->env; |
|
28 |
|
|
23 | 29 |
if (n < 8) { |
24 | 30 |
/* D0-D7 */ |
25 | 31 |
return gdb_get_reg32(mem_buf, env->dregs[n]); |
... | ... | |
39 | 45 |
return 0; |
40 | 46 |
} |
41 | 47 |
|
42 |
static int cpu_gdb_write_register(CPUM68KState *env, uint8_t *mem_buf, int n)
|
|
48 |
int m68k_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
|
|
43 | 49 |
{ |
50 |
M68kCPU *cpu = M68K_CPU(cs); |
|
51 |
CPUM68KState *env = &cpu->env; |
|
44 | 52 |
uint32_t tmp; |
45 | 53 |
|
46 | 54 |
tmp = ldl_p(mem_buf); |
Also available in: Unified diff