@ -44,11 +44,9 @@ int arm_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n)
ARMCPU * cpu = ARM_CPU ( cs ) ;
ARMCPU * cpu = ARM_CPU ( cs ) ;
CPUARMState * env = & cpu - > env ;
CPUARMState * env = & cpu - > env ;
# ifdef TARGET_AARCH64
if ( arm_gdbstub_is_aarch64 ( cpu ) ) {
if ( arm_gdbstub_is_aarch64 ( cpu ) ) {
return aarch64_cpu_gdb_read_register ( cs , mem_buf , n ) ;
return aarch64_cpu_gdb_read_register ( cs , mem_buf , n ) ;
}
}
# endif
if ( n < 16 ) {
if ( n < 16 ) {
/* Core integer register. */
/* Core integer register. */
@ -72,11 +70,9 @@ int arm_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
CPUARMState * env = & cpu - > env ;
CPUARMState * env = & cpu - > env ;
uint32_t tmp ;
uint32_t tmp ;
# ifdef TARGET_AARCH64
if ( arm_gdbstub_is_aarch64 ( cpu ) ) {
if ( arm_gdbstub_is_aarch64 ( cpu ) ) {
return aarch64_cpu_gdb_write_register ( cs , mem_buf , n ) ;
return aarch64_cpu_gdb_write_register ( cs , mem_buf , n ) ;
}
}
# endif
tmp = ldl_p ( mem_buf ) ;
tmp = ldl_p ( mem_buf ) ;
@ -504,10 +500,8 @@ void arm_cpu_register_gdb_commands(ARMCPU *cpu)
g_autoptr ( GString ) qsupported_features = g_string_new ( NULL ) ;
g_autoptr ( GString ) qsupported_features = g_string_new ( NULL ) ;
if ( arm_feature ( & cpu - > env , ARM_FEATURE_AARCH64 ) ) {
if ( arm_feature ( & cpu - > env , ARM_FEATURE_AARCH64 ) ) {
# ifdef TARGET_AARCH64
aarch64_cpu_register_gdb_commands ( cpu , qsupported_features , query_table ,
aarch64_cpu_register_gdb_commands ( cpu , qsupported_features , query_table ,
set_table ) ;
set_table ) ;
# endif
}
}
/* Set arch-specific handlers for 'q' commands. */
/* Set arch-specific handlers for 'q' commands. */
@ -536,9 +530,7 @@ void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu)
* The lower part of each SVE register aliases to the FPU
* The lower part of each SVE register aliases to the FPU
* registers so we don ' t need to include both .
* registers so we don ' t need to include both .
*/
*/
# ifdef TARGET_AARCH64
aarch64_cpu_register_gdb_regs_for_features ( cpu ) ;
aarch64_cpu_register_gdb_regs_for_features ( cpu ) ;
# endif
} else {
} else {
if ( arm_feature ( env , ARM_FEATURE_NEON ) ) {
if ( arm_feature ( env , ARM_FEATURE_NEON ) ) {
gdb_register_coprocessor ( cs , vfp_gdb_get_reg , vfp_gdb_set_reg ,
gdb_register_coprocessor ( cs , vfp_gdb_get_reg , vfp_gdb_set_reg ,