return ERROR_OK;
}
- retval = arm->read_core_reg(target, reg, armv8_reg->num, arm->core_mode);
+ retval = arm->read_core_reg(target, reg64, armv8_reg->num, arm->core_mode);
if (retval == ERROR_OK)
reg->valid = reg64->valid;
struct reg *reg64 = cache->reg_list + armv8_reg->num;
uint32_t value = buf_get_u32(buf, 0, 32);
- if (target->state != TARGET_HALTED)
- return ERROR_TARGET_NOT_HALTED;
-
if (reg64 == arm->cpsr) {
armv8_set_cpsr(arm, value);
} else {
if (arm->core_state == ARM_STATE_AARCH64) {
- LOG_DEBUG("Creating Aarch64 register list");
+ LOG_DEBUG("Creating Aarch64 register list for target %s", target_name(target));
switch (reg_class) {
case REG_CLASS_GENERAL:
} else {
struct reg_cache *cache32 = arm->core_cache->next;
- LOG_DEBUG("Creating Aarch32 register list");
+ LOG_DEBUG("Creating Aarch32 register list for target %s", target_name(target));
switch (reg_class) {
case REG_CLASS_GENERAL: