Fix pc after ppc sc inst
This commit is contained in:
@@ -386,6 +386,10 @@ static inline bool cpu_handle_exception(CPUState *cpu, int *ret)
|
||||
#if defined(TARGET_RISCV)
|
||||
CPURISCVState *env = &(RISCV_CPU(uc->cpu)->env);
|
||||
env->pc += 4;
|
||||
#endif
|
||||
#if defined(TARGET_PPC)
|
||||
CPUPPCState *env = &(POWERPC_CPU(uc->cpu)->env);
|
||||
env->nip += 4;
|
||||
#endif
|
||||
// Unicorn: call registered interrupt callbacks
|
||||
catched = false;
|
||||
|
||||
Reference in New Issue
Block a user