mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
target-microblaze: Tidy up the base-vectors property
Rename the "xlnx.base-vectors" string to "base-vectors" and move the base_vectors variable into the cfg struct. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
9aaaa18194
commit
f27183abaa
3 changed files with 8 additions and 7 deletions
|
@ -154,7 +154,7 @@ void mb_cpu_do_interrupt(CPUState *cs)
|
|||
env->sregs[SR_ESR], env->iflags);
|
||||
log_cpu_state_mask(CPU_LOG_INT, cs, 0);
|
||||
env->iflags &= ~(IMM_FLAG | D_FLAG);
|
||||
env->sregs[SR_PC] = cpu->base_vectors + 0x20;
|
||||
env->sregs[SR_PC] = cpu->cfg.base_vectors + 0x20;
|
||||
break;
|
||||
|
||||
case EXCP_MMU:
|
||||
|
@ -194,7 +194,7 @@ void mb_cpu_do_interrupt(CPUState *cs)
|
|||
env->sregs[SR_PC], env->sregs[SR_EAR], env->iflags);
|
||||
log_cpu_state_mask(CPU_LOG_INT, cs, 0);
|
||||
env->iflags &= ~(IMM_FLAG | D_FLAG);
|
||||
env->sregs[SR_PC] = cpu->base_vectors + 0x20;
|
||||
env->sregs[SR_PC] = cpu->cfg.base_vectors + 0x20;
|
||||
break;
|
||||
|
||||
case EXCP_IRQ:
|
||||
|
@ -235,7 +235,7 @@ void mb_cpu_do_interrupt(CPUState *cs)
|
|||
env->sregs[SR_MSR] |= t;
|
||||
|
||||
env->regs[14] = env->sregs[SR_PC];
|
||||
env->sregs[SR_PC] = cpu->base_vectors + 0x10;
|
||||
env->sregs[SR_PC] = cpu->cfg.base_vectors + 0x10;
|
||||
//log_cpu_state_mask(CPU_LOG_INT, cs, 0);
|
||||
break;
|
||||
|
||||
|
@ -254,7 +254,7 @@ void mb_cpu_do_interrupt(CPUState *cs)
|
|||
if (cs->exception_index == EXCP_HW_BREAK) {
|
||||
env->regs[16] = env->sregs[SR_PC];
|
||||
env->sregs[SR_MSR] |= MSR_BIP;
|
||||
env->sregs[SR_PC] = cpu->base_vectors + 0x18;
|
||||
env->sregs[SR_PC] = cpu->cfg.base_vectors + 0x18;
|
||||
} else
|
||||
env->sregs[SR_PC] = env->btarget;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue