|
@@ -21,6 +21,7 @@
|
|
#include "cpu.h"
|
|
#include "cpu.h"
|
|
#include "exec/gdbstub.h"
|
|
#include "exec/gdbstub.h"
|
|
#include "gdbstub/helpers.h"
|
|
#include "gdbstub/helpers.h"
|
|
|
|
+#include "sysemu/tcg.h"
|
|
#include "internals.h"
|
|
#include "internals.h"
|
|
#include "cpregs.h"
|
|
#include "cpregs.h"
|
|
|
|
|
|
@@ -553,7 +554,7 @@ void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu)
|
|
2, "arm-vfp-sysregs.xml", 0);
|
|
2, "arm-vfp-sysregs.xml", 0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (cpu_isar_feature(aa32_mve, cpu)) {
|
|
|
|
|
|
+ if (cpu_isar_feature(aa32_mve, cpu) && tcg_enabled()) {
|
|
gdb_register_coprocessor(cs, mve_gdb_get_reg, mve_gdb_set_reg,
|
|
gdb_register_coprocessor(cs, mve_gdb_get_reg, mve_gdb_set_reg,
|
|
1, "arm-m-profile-mve.xml", 0);
|
|
1, "arm-m-profile-mve.xml", 0);
|
|
}
|
|
}
|
|
@@ -561,7 +562,7 @@ void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu)
|
|
arm_gen_dynamic_sysreg_xml(cs, cs->gdb_num_regs),
|
|
arm_gen_dynamic_sysreg_xml(cs, cs->gdb_num_regs),
|
|
"system-registers.xml", 0);
|
|
"system-registers.xml", 0);
|
|
|
|
|
|
- if (arm_feature(env, ARM_FEATURE_M)) {
|
|
|
|
|
|
+ if (arm_feature(env, ARM_FEATURE_M) && tcg_enabled()) {
|
|
gdb_register_coprocessor(cs,
|
|
gdb_register_coprocessor(cs,
|
|
arm_gdb_get_m_systemreg, arm_gdb_set_m_systemreg,
|
|
arm_gdb_get_m_systemreg, arm_gdb_set_m_systemreg,
|
|
arm_gen_dynamic_m_systemreg_xml(cs, cs->gdb_num_regs),
|
|
arm_gen_dynamic_m_systemreg_xml(cs, cs->gdb_num_regs),
|