Add test and close #1477
This commit is contained in:
@ -380,6 +380,10 @@ static inline bool cpu_handle_exception(CPUState *cpu, int *ret)
|
||||
// Unicorn: Imported from https://github.com/unicorn-engine/unicorn/pull/1098
|
||||
CPUMIPSState *env = &(MIPS_CPU(cpu)->env);
|
||||
env->active_tc.PC = uc->next_pc;
|
||||
#endif
|
||||
#if defined(TARGET_RISCV)
|
||||
CPURISCVState *env = &(RISCV_CPU(uc->cpu)->env);
|
||||
env->pc += 4;
|
||||
#endif
|
||||
// Unicorn: call registered interrupt callbacks
|
||||
catched = false;
|
||||
|
Reference in New Issue
Block a user