aboutsummaryrefslogtreecommitdiff
path: root/target-arm/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-arm/helper.c')
-rw-r--r--target-arm/helper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target-arm/helper.c b/target-arm/helper.c
index b4cafc147f..7315c2db35 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -129,10 +129,13 @@ bool write_cpustate_to_list(ARMCPU *cpu)
if (ri->type & ARM_CP_NO_MIGRATE) {
continue;
}
+ printf("write_cpustate_to_list: reg 0x%" PRIx32 ": ", regidx);
if (!read_raw_cp_reg(&cpu->env, ri, &v)) {
+ printf("failed\n");
ok = false;
continue;
}
+ printf("0x%" PRIx64 "\n", v);
cpu->cpreg_values[i] = v;
}
return ok;
@@ -161,11 +164,15 @@ bool write_list_to_cpustate(ARMCPU *cpu)
* (to catch read-only registers and partially read-only
* registers where the incoming migration value doesn't match)
*/
+ printf("write_list_to_cpustate: reg 0x%" PRIx32 ": 0x%" PRIx64,
+ regidx, v);
if (!write_raw_cp_reg(&cpu->env, ri, v) ||
!read_raw_cp_reg(&cpu->env, ri, &readback) ||
readback != v) {
ok = false;
+ printf(" failed");
}
+ printf("\n");
}
return ok;
}