Message ID | 1436448252-1916-13-git-send-email-afaerber@suse.de |
---|---|
State | New |
Headers | show |
diff --git a/include/qom/cpu.h b/include/qom/cpu.h index 3993042..b120574 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -602,6 +602,20 @@ static inline void cpu_unaligned_access(CPUState *cpu, vaddr addr, #endif /** + * cpu_set_pc: + * @cpu: The CPU to set the program counter for. + * @addr: Program counter value. + * + * Sets the program counter for a CPU. + */ +static inline void cpu_set_pc(CPUState *cpu, vaddr addr) +{ + CPUClass *cc = CPU_GET_CLASS(cpu); + + cc->set_pc(cpu, addr); +} + +/** * cpu_reset_interrupt: * @cpu: The CPU to clear the interrupt on. * @mask: The interrupt mask to clear.