Commit 6223246ad9d6492f6159104759662521fb61fe9f

Authored by aurel32
1 parent 4870167d

target-alpha: fix the return value of stl_c/stq_c

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5649 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 4 deletions
target-alpha/translate.c
... ... @@ -207,10 +207,10 @@ static always_inline void gen_qemu_stl_c (TCGv t0, TCGv t1, int flags)
207 207 l2 = gen_new_label();
208 208 tcg_gen_brcond_i64(TCG_COND_NE, cpu_lock, t1, l1);
209 209 tcg_gen_qemu_st32(t0, t1, flags);
210   - tcg_gen_movi_i64(t0, 0);
  210 + tcg_gen_movi_i64(t0, 1);
211 211 tcg_gen_br(l2);
212 212 gen_set_label(l1);
213   - tcg_gen_movi_i64(t0, 1);
  213 + tcg_gen_movi_i64(t0, 0);
214 214 gen_set_label(l2);
215 215 tcg_gen_movi_i64(cpu_lock, -1);
216 216 }
... ... @@ -223,10 +223,10 @@ static always_inline void gen_qemu_stq_c (TCGv t0, TCGv t1, int flags)
223 223 l2 = gen_new_label();
224 224 tcg_gen_brcond_i64(TCG_COND_NE, cpu_lock, t1, l1);
225 225 tcg_gen_qemu_st64(t0, t1, flags);
226   - tcg_gen_movi_i64(t0, 0);
  226 + tcg_gen_movi_i64(t0, 1);
227 227 tcg_gen_br(l2);
228 228 gen_set_label(l1);
229   - tcg_gen_movi_i64(t0, 1);
  229 + tcg_gen_movi_i64(t0, 0);
230 230 gen_set_label(l2);
231 231 tcg_gen_movi_i64(cpu_lock, -1);
232 232 }
... ...