]> git.proxmox.com Git - qemu.git/blobdiff - target-microblaze/gdbstub.c
gdbstub: Replace GET_REG*() macros with gdb_get_reg*() functions
[qemu.git] / target-microblaze / gdbstub.c
index 96c4bc085ae6aa8a19d2e5aaf4628d928f7814aa..678de21b5fc1db62d8a1e6029de1a3f614ae1fac 100644 (file)
@@ -21,9 +21,9 @@
 static int cpu_gdb_read_register(CPUMBState *env, uint8_t *mem_buf, int n)
 {
     if (n < 32) {
-        GET_REG32(env->regs[n]);
+        return gdb_get_reg32(mem_buf, env->regs[n]);
     } else {
-        GET_REG32(env->sregs[n - 32]);
+        return gdb_get_reg32(mem_buf, env->sregs[n - 32]);
     }
     return 0;
 }