Revision 90431220 target-cris/gdbstub.c
b/target-cris/gdbstub.c | ||
---|---|---|
21 | 21 |
#include "qemu-common.h" |
22 | 22 |
#include "exec/gdbstub.h" |
23 | 23 |
|
24 |
static int |
|
25 |
read_register_crisv10(CPUCRISState *env, uint8_t *mem_buf, int n) |
|
24 |
int crisv10_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n) |
|
26 | 25 |
{ |
26 |
CRISCPU *cpu = CRIS_CPU(cs); |
|
27 |
CPUCRISState *env = &cpu->env; |
|
28 |
|
|
27 | 29 |
if (n < 15) { |
28 | 30 |
return gdb_get_reg32(mem_buf, env->regs[n]); |
29 | 31 |
} |
... | ... | |
57 | 59 |
CPUCRISState *env = &cpu->env; |
58 | 60 |
uint8_t srs; |
59 | 61 |
|
60 |
if (env->pregs[PR_VR] < 32) { |
|
61 |
return read_register_crisv10(env, mem_buf, n); |
|
62 |
} |
|
63 |
|
|
64 | 62 |
srs = env->pregs[PR_SRS]; |
65 | 63 |
if (n < 16) { |
66 | 64 |
return gdb_get_reg32(mem_buf, env->regs[n]); |
Also available in: Unified diff