mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
target/microblaze: Split out ESR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of ESR, yet. Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
b2e80a3c19
commit
78e9caf2f9
6 changed files with 27 additions and 25 deletions
|
@ -1809,7 +1809,7 @@ void mb_cpu_dump_state(CPUState *cs, FILE *f, int flags)
|
|||
qemu_fprintf(f, "rmsr=%" PRIx64 " resr=%" PRIx64 " rear=%" PRIx64 " "
|
||||
"debug=%x imm=%x iflags=%x fsr=%" PRIx64 " "
|
||||
"rbtr=%" PRIx64 "\n",
|
||||
env->msr, env->sregs[SR_ESR], env->ear,
|
||||
env->msr, env->esr, env->ear,
|
||||
env->debug, env->imm, env->iflags, env->sregs[SR_FSR],
|
||||
env->sregs[SR_BTR]);
|
||||
qemu_fprintf(f, "btaken=%d btarget=%" PRIx64 " mode=%s(saved=%s) "
|
||||
|
@ -1875,8 +1875,10 @@ void mb_tcg_init(void)
|
|||
tcg_global_mem_new_i64(cpu_env, offsetof(CPUMBState, msr), "rmsr");
|
||||
cpu_SR[SR_EAR] =
|
||||
tcg_global_mem_new_i64(cpu_env, offsetof(CPUMBState, ear), "rear");
|
||||
cpu_SR[SR_ESR] =
|
||||
tcg_global_mem_new_i64(cpu_env, offsetof(CPUMBState, esr), "resr");
|
||||
|
||||
for (i = SR_EAR + 1; i < ARRAY_SIZE(cpu_SR); i++) {
|
||||
for (i = SR_ESR + 1; i < ARRAY_SIZE(cpu_SR); i++) {
|
||||
cpu_SR[i] = tcg_global_mem_new_i64(cpu_env,
|
||||
offsetof(CPUMBState, sregs[i]),
|
||||
special_regnames[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue