提交 98156423 编写于 作者: P pbrook

Fix DEBUG_TCGV.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4415 c046a42c-6fe2-441c-8c8c-71466251a162
上级 ec5b78cd
...@@ -164,7 +164,7 @@ static inline void tcg_gen_br(int label) ...@@ -164,7 +164,7 @@ static inline void tcg_gen_br(int label)
static inline void tcg_gen_mov_i32(TCGv ret, TCGv arg) static inline void tcg_gen_mov_i32(TCGv ret, TCGv arg)
{ {
if (ret != arg) if (GET_TCGV(ret) != GET_TCGV(arg))
tcg_gen_op2(INDEX_op_mov_i32, ret, arg); tcg_gen_op2(INDEX_op_mov_i32, ret, arg);
} }
...@@ -501,7 +501,7 @@ static inline void tcg_gen_remu_i32(TCGv ret, TCGv arg1, TCGv arg2) ...@@ -501,7 +501,7 @@ static inline void tcg_gen_remu_i32(TCGv ret, TCGv arg1, TCGv arg2)
static inline void tcg_gen_mov_i64(TCGv ret, TCGv arg) static inline void tcg_gen_mov_i64(TCGv ret, TCGv arg)
{ {
if (ret != arg) { if (GET_TCGV(ret) != GET_TCGV(arg)) {
tcg_gen_mov_i32(ret, arg); tcg_gen_mov_i32(ret, arg);
tcg_gen_mov_i32(TCGV_HIGH(ret), TCGV_HIGH(arg)); tcg_gen_mov_i32(TCGV_HIGH(ret), TCGV_HIGH(arg));
} }
...@@ -732,7 +732,7 @@ static inline void tcg_gen_remu_i64(TCGv ret, TCGv arg1, TCGv arg2) ...@@ -732,7 +732,7 @@ static inline void tcg_gen_remu_i64(TCGv ret, TCGv arg1, TCGv arg2)
static inline void tcg_gen_mov_i64(TCGv ret, TCGv arg) static inline void tcg_gen_mov_i64(TCGv ret, TCGv arg)
{ {
if (ret != arg) if (GET_TCGV(ret) != GET_TCGV(arg))
tcg_gen_op2(INDEX_op_mov_i64, ret, arg); tcg_gen_op2(INDEX_op_mov_i64, ret, arg);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册