diff mbox

[16/22] target/openrisc: Implement msync

Message ID 20170209045154.16868-17-rth@twiddle.net
State New
Headers show

Commit Message

Richard Henderson Feb. 9, 2017, 4:51 a.m. UTC
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 target/openrisc/translate.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c
index 6c8f05c..dd4ba8c 100644
--- a/target/openrisc/translate.c
+++ b/target/openrisc/translate.c
@@ -1144,6 +1144,7 @@  static void dec_sys(DisasContext *dc, uint32_t insn)
 
     case 0x200:    /* l.msync */
         LOG_DIS("l.msync\n");
+        tcg_gen_mb(TCG_MO_ALL);
         break;
 
     case 0x270:    /* l.psync */