mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-10 19:05:45 +00:00
target-sparc: Add npc state to insn_start
Backports commit a3d5ad761cafc669e25f4185e63d8d758a989135 from qemu
This commit is contained in:
parent
2c1ae7a408
commit
25e0621757
|
@ -232,6 +232,7 @@ typedef struct trap_state {
|
|||
uint32_t tt;
|
||||
} trap_state;
|
||||
#endif
|
||||
#define TARGET_INSN_START_EXTRA_WORDS 1
|
||||
|
||||
typedef struct sparc_def_t {
|
||||
const char *name;
|
||||
|
|
|
@ -5448,7 +5448,12 @@ static inline void gen_intermediate_code_internal(SPARCCPU *cpu,
|
|||
tcg_ctx->gen_opc_icount[lj] = num_insns;
|
||||
}
|
||||
}
|
||||
tcg_gen_insn_start(tcg_ctx, dc->pc);
|
||||
if (dc->npc & JUMP_PC) {
|
||||
assert(dc->jump_pc[1] == dc->pc + 4);
|
||||
tcg_gen_insn_start(tcg_ctx, dc->pc, dc->jump_pc[0] | JUMP_PC);
|
||||
} else {
|
||||
tcg_gen_insn_start(tcg_ctx, dc->pc, dc->npc);
|
||||
}
|
||||
num_insns++;
|
||||
|
||||
//if (num_insns == max_insns && (tb->cflags & CF_LAST_IO)) {
|
||||
|
|
Loading…
Reference in a new issue