]> Git Repo - qemu.git/blobdiff - tcg/i386/tcg-target.inc.c
tcg: Return bool success from tcg_out_mov
[qemu.git] / tcg / i386 / tcg-target.inc.c
index d5ed9f1ffd62d7cf3f1d1fca8a083236aa67bf4a..1198c763927cbae12635c2c44e495e7d844decd3 100644 (file)
@@ -809,12 +809,12 @@ static inline void tgen_arithr(TCGContext *s, int subop, int dest, int src)
     tcg_out_modrm(s, OPC_ARITH_GvEv + (subop << 3) + ext, dest, src);
 }
 
-static void tcg_out_mov(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg)
+static bool tcg_out_mov(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg)
 {
     int rexw = 0;
 
     if (arg == ret) {
-        return;
+        return true;
     }
     switch (type) {
     case TCG_TYPE_I64:
@@ -852,6 +852,7 @@ static void tcg_out_mov(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg)
     default:
         g_assert_not_reached();
     }
+    return true;
 }
 
 static void tcg_out_dup_vec(TCGContext *s, TCGType type, unsigned vece,
This page took 0.022997 seconds and 4 git commands to generate.