Revision 5b50e790 target-alpha/gdbstub.c

b/target-alpha/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(CPUAlphaState *env, uint8_t *mem_buf, int n)
24
int alpha_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
22 25
{
26
    AlphaCPU *cpu = ALPHA_CPU(cs);
27
    CPUAlphaState *env = &cpu->env;
23 28
    uint64_t val;
24 29
    CPU_DoubleU d;
25 30

  
......
52 57
    return gdb_get_regl(mem_buf, val);
53 58
}
54 59

  
55
static int cpu_gdb_write_register(CPUAlphaState *env, uint8_t *mem_buf, int n)
60
int alpha_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
56 61
{
62
    AlphaCPU *cpu = ALPHA_CPU(cs);
63
    CPUAlphaState *env = &cpu->env;
57 64
    target_ulong tmp = ldtul_p(mem_buf);
58 65
    CPU_DoubleU d;
59 66

  

Also available in: Unified diff