Revision 5b50e790 target-sparc/gdbstub.c

b/target-sparc/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
#ifdef TARGET_ABI32
22 25
#define gdb_get_rega(buf, val) gdb_get_reg32(buf, val)
......
24 27
#define gdb_get_rega(buf, val) gdb_get_regl(buf, val)
25 28
#endif
26 29

  
27
static int cpu_gdb_read_register(CPUSPARCState *env, uint8_t *mem_buf, int n)
30
int sparc_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
28 31
{
32
    SPARCCPU *cpu = SPARC_CPU(cs);
33
    CPUSPARCState *env = &cpu->env;
34

  
29 35
    if (n < 8) {
30 36
        /* g0..g7 */
31 37
        return gdb_get_rega(mem_buf, env->gregs[n]);
......
98 104
    return 0;
99 105
}
100 106

  
101
static int cpu_gdb_write_register(CPUSPARCState *env, uint8_t *mem_buf, int n)
107
int sparc_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
102 108
{
109
    SPARCCPU *cpu = SPARC_CPU(cs);
110
    CPUSPARCState *env = &cpu->env;
103 111
#if defined(TARGET_ABI32)
104 112
    abi_ulong tmp;
105 113

  

Also available in: Unified diff