Skip to content

Commit

Permalink
Merge branch 'target-arm.next' of git://git.linaro.org/people/pmaydel…
Browse files Browse the repository at this point in the history
…l/qemu-arm

* 'target-arm.next' of git://git.linaro.org/people/pmaydell/qemu-arm:
  target-arm: Fix SWI (SVC) instruction in M profile.
  target-arm: use type_register() instead of type_register_static()
  • Loading branch information
blueswirl committed Jan 12, 2013
2 parents 02e079c + 314e229 commit 63fb259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion target-arm/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ static void cpu_register(const ARMCPUInfo *info)
.class_size = sizeof(ARMCPUClass),
};

type_register_static(&type_info);
type_register(&type_info);
}

static const TypeInfo arm_cpu_type_info = {
Expand Down
2 changes: 1 addition & 1 deletion target-arm/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ static void do_interrupt_v7m(CPUARMState *env)
armv7m_nvic_set_pending(env->nvic, ARMV7M_EXCP_USAGE);
return;
case EXCP_SWI:
env->regs[15] += 2;
/* The PC already points to the next instruction. */
armv7m_nvic_set_pending(env->nvic, ARMV7M_EXCP_SVC);
return;
case EXCP_PREFETCH_ABORT:
Expand Down

0 comments on commit 63fb259

Please sign in to comment.