Skip to content

Commit

Permalink
ensure pc is synchronized before sleep instruction is executed, else the
Browse files Browse the repository at this point in the history
sleep loop will spin starting at the last known pc
  • Loading branch information
inolen committed Nov 26, 2017
1 parent 80fd246 commit d0024b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jit/frontend/sh4/sh4_instr.inc
Expand Up @@ -166,7 +166,7 @@ SH4_INSTR(PREF, "pref @rn", 0000nnnn10000011, 1, SH4_FL
SH4_INSTR(RTE, "rte", 0000000000101011, 5, SH4_FLAG_STORE_PC | SH4_FLAG_DELAYED | SH4_FLAG_STORE_SR)
SH4_INSTR(SETS, "sets", 0000000001011000, 1, 0)
SH4_INSTR(SETT, "sett", 0000000000011000, 1, 0)
SH4_INSTR(SLEEP, "sleep", 0000000000011011, 4, SH4_FLAG_STORE_PC)
SH4_INSTR(SLEEP, "sleep", 0000000000011011, 4, SH4_FLAG_LOAD_PC | SH4_FLAG_STORE_PC)
SH4_INSTR(STCSR, "stc sr, rn", 0000nnnn00000010, 2, 0)
SH4_INSTR(STCGBR, "stc gbr, rn", 0000nnnn00010010, 2, 0)
SH4_INSTR(STCVBR, "stc vbr, rn", 0000nnnn00100010, 2, 0)
Expand Down

0 comments on commit d0024b8

Please sign in to comment.