Revision 5b50e790 target-cris/gdbstub.c

b/target-cris/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 24
static int
22 25
read_register_crisv10(CPUCRISState *env, uint8_t *mem_buf, int n)
......
48 51
    return 0;
49 52
}
50 53

  
51
static int cpu_gdb_read_register(CPUCRISState *env, uint8_t *mem_buf, int n)
54
int cris_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
52 55
{
56
    CRISCPU *cpu = CRIS_CPU(cs);
57
    CPUCRISState *env = &cpu->env;
53 58
    uint8_t srs;
54 59

  
55 60
    if (env->pregs[PR_VR] < 32) {
......
85 90
    return 0;
86 91
}
87 92

  
88
static int cpu_gdb_write_register(CPUCRISState *env, uint8_t *mem_buf, int n)
93
int cris_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
89 94
{
95
    CRISCPU *cpu = CRIS_CPU(cs);
96
    CPUCRISState *env = &cpu->env;
90 97
    uint32_t tmp;
91 98

  
92 99
    if (n > 49) {

Also available in: Unified diff