mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
target/microblaze: Split out PC from env->sregs
Begin eliminating the sregs array in favor of individual members. Does not correct the width of pc, 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
8a42ddf013
commit
76e8187d00
9 changed files with 42 additions and 37 deletions
|
@ -1805,7 +1805,7 @@ void mb_cpu_dump_state(CPUState *cs, FILE *f, int flags)
|
|||
}
|
||||
|
||||
qemu_fprintf(f, "IN: PC=%" PRIx64 " %s\n",
|
||||
env->sregs[SR_PC], lookup_symbol(env->sregs[SR_PC]));
|
||||
env->pc, lookup_symbol(env->pc));
|
||||
qemu_fprintf(f, "rmsr=%" PRIx64 " resr=%" PRIx64 " rear=%" PRIx64 " "
|
||||
"debug=%x imm=%x iflags=%x fsr=%" PRIx64 " "
|
||||
"rbtr=%" PRIx64 "\n",
|
||||
|
@ -1868,7 +1868,11 @@ void mb_tcg_init(void)
|
|||
offsetof(CPUMBState, regs[i]),
|
||||
regnames[i]);
|
||||
}
|
||||
for (i = 0; i < ARRAY_SIZE(cpu_SR); i++) {
|
||||
|
||||
cpu_SR[SR_PC] =
|
||||
tcg_global_mem_new_i64(cpu_env, offsetof(CPUMBState, pc), "rpc");
|
||||
|
||||
for (i = 1; i < ARRAY_SIZE(cpu_SR); i++) {
|
||||
cpu_SR[i] = tcg_global_mem_new_i64(cpu_env,
|
||||
offsetof(CPUMBState, sregs[i]),
|
||||
special_regnames[i]);
|
||||
|
@ -1878,5 +1882,5 @@ void mb_tcg_init(void)
|
|||
void restore_state_to_opc(CPUMBState *env, TranslationBlock *tb,
|
||||
target_ulong *data)
|
||||
{
|
||||
env->sregs[SR_PC] = data[0];
|
||||
env->pc = data[0];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue