Revision 5b50e790 target-xtensa/gdbstub.c
b/target-xtensa/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(CPUXtensaState *env, uint8_t *mem_buf, int n)
|
|
24 |
int xtensa_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
|
|
22 | 25 |
{ |
26 |
XtensaCPU *cpu = XTENSA_CPU(cs); |
|
27 |
CPUXtensaState *env = &cpu->env; |
|
23 | 28 |
const XtensaGdbReg *reg = env->config->gdb_regmap.reg + n; |
24 | 29 |
|
25 | 30 |
if (n < 0 || n >= env->config->gdb_regmap.num_regs) { |
... | ... | |
55 | 60 |
} |
56 | 61 |
} |
57 | 62 |
|
58 |
static int cpu_gdb_write_register(CPUXtensaState *env, uint8_t *mem_buf, int n)
|
|
63 |
int xtensa_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
|
|
59 | 64 |
{ |
65 |
XtensaCPU *cpu = XTENSA_CPU(cs); |
|
66 |
CPUXtensaState *env = &cpu->env; |
|
60 | 67 |
uint32_t tmp; |
61 | 68 |
const XtensaGdbReg *reg = env->config->gdb_regmap.reg + n; |
62 | 69 |
|
Also available in: Unified diff