diff options
author | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2013-05-28 14:56:20 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2014-05-13 09:12:40 +1000 |
commit | 6d35556caa0c43533a9bf43195bad0152d86ea68 (patch) | |
tree | 8ab957e18082f2a7b0f242c3d005318851d30cad /target-microblaze/cpu.c | |
parent | 1b939d922737fac86a854dbc5e186fe9fb7b0573 (diff) | |
download | qemu-6d35556caa0c43533a9bf43195bad0152d86ea68.zip qemu-6d35556caa0c43533a9bf43195bad0152d86ea68.tar.gz qemu-6d35556caa0c43533a9bf43195bad0152d86ea68.tar.bz2 |
microblaze: Respect the reset vector
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'target-microblaze/cpu.c')
-rw-r--r-- | target-microblaze/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c index 8e04811..0379f2b 100644 --- a/target-microblaze/cpu.c +++ b/target-microblaze/cpu.c @@ -96,6 +96,8 @@ static void mb_cpu_reset(CPUState *s) env->pvr.regs[10] = 0x0c000000; /* Default to spartan 3a dsp family. */ env->pvr.regs[11] = PVR11_USE_MMU | (16 << 17); + env->sregs[SR_PC] = cpu->base_vectors; + #if defined(CONFIG_USER_ONLY) /* start in user mode with interrupts enabled. */ env->sregs[SR_MSR] = MSR_EE | MSR_IE | MSR_VM | MSR_UM; |