summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Emont <guijemont@igalia.com>2012-12-10 18:06:11 +0100
committerGuillaume Emont <guijemont@igalia.com>2012-12-28 15:23:38 +0100
commitc81a94e7f95a3cbfaa3f361bc9625b932d053c73 (patch)
tree3e2585e8636e964128f8ff822c2fc691dbade4ec
parent1aea9f41737788772c7e10544a26ac7dcef9589a (diff)
downloadorc-c81a94e7f95a3cbfaa3f361bc9625b932d053c73.tar.gz
mips: add missing nop in a branch delay slot
-rw-r--r--orc/orcprogram-mips.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/orc/orcprogram-mips.c b/orc/orcprogram-mips.c
index 0656fbf..f051b09 100644
--- a/orc/orcprogram-mips.c
+++ b/orc/orcprogram-mips.c
@@ -541,7 +541,8 @@ usual_case:
*/
orc_mips_emit_conditional_branch_with_offset (compiler, ORC_MIPS_BGEZ,
ORC_MIPS_T2, ORC_MIPS_ZERO,
- 16);
+ 24);
+ orc_mips_emit_nop (compiler);
orc_mips_emit_move (compiler, ORC_MIPS_T1, ORC_MIPS_ZERO);
orc_mips_emit_move (compiler, ORC_MIPS_T2, ORC_MIPS_ZERO);
orc_mips_emit_lw (compiler, ORC_MIPS_T0, compiler->exec_reg,