Skip to content

Commit

Permalink
fixup! feat:add cortex-m kvm vcpu init For cortex-m, cpu has to reset…
Browse files Browse the repository at this point in the history
… before vcpu init. Add vcpu_ioctl interfacs for cortex regs and sregs rw.
  • Loading branch information
weizhou-chaojixx committed Nov 16, 2019
1 parent 9448edb commit 8af7169
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions target/arm/kvm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ int kvm_arch_put_registers(CPUState *cs, int level)

if (arm_feature(&cpu->env, ARM_FEATURE_M)) {
return kvm_cortex_m_vcpu_init(cs);
}
else {
} else {
/* Make sure the banked regs are properly set */
mode = env->uncached_cpsr & CPSR_M;
bn = bank_number(mode);
Expand Down

0 comments on commit 8af7169

Please sign in to comment.