Revision 5b50e790 target-mips/gdbstub.c

b/target-mips/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(CPUMIPSState *env, uint8_t *mem_buf, int n)
24
int mips_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
22 25
{
26
    MIPSCPU *cpu = MIPS_CPU(cs);
27
    CPUMIPSState *env = &cpu->env;
28

  
23 29
    if (n < 32) {
24 30
        return gdb_get_regl(mem_buf, env->active_tc.gpr[n]);
25 31
    }
......
78 84
    set_float_rounding_mode(ieee_rm[env->active_fpu.fcr31 & 3], \
79 85
                            &env->active_fpu.fp_status)
80 86

  
81
static int cpu_gdb_write_register(CPUMIPSState *env, uint8_t *mem_buf, int n)
87
int mips_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
82 88
{
89
    MIPSCPU *cpu = MIPS_CPU(cs);
90
    CPUMIPSState *env = &cpu->env;
83 91
    target_ulong tmp;
84 92

  
85 93
    tmp = ldtul_p(mem_buf);

Also available in: Unified diff