diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-08 09:10:39 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-08 09:10:39 +0000 |
commit | 49ff7803bc9e9ec07836cd766c0628e08a074eb8 (patch) | |
tree | 648c83a0595d58dadd0bac646beb0ad08f15fdea /target-alpha | |
parent | beeb882d89722ad50a57269dd2e66a8bbdc17b3c (diff) | |
download | qemu-49ff7803bc9e9ec07836cd766c0628e08a074eb8.tar.gz qemu-49ff7803bc9e9ec07836cd766c0628e08a074eb8.tar.bz2 qemu-49ff7803bc9e9ec07836cd766c0628e08a074eb8.zip |
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
Diffstat (limited to 'target-alpha')
-rw-r--r-- | target-alpha/translate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target-alpha/translate.c b/target-alpha/translate.c index fc6cff2a96..5510ca7f3f 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -207,10 +207,10 @@ static always_inline void gen_qemu_stl_c (TCGv t0, TCGv t1, int flags) l2 = gen_new_label(); tcg_gen_brcond_i64(TCG_COND_NE, cpu_lock, t1, l1); tcg_gen_qemu_st32(t0, t1, flags); - tcg_gen_movi_i64(t0, 0); + tcg_gen_movi_i64(t0, 1); tcg_gen_br(l2); gen_set_label(l1); - tcg_gen_movi_i64(t0, 1); + tcg_gen_movi_i64(t0, 0); gen_set_label(l2); tcg_gen_movi_i64(cpu_lock, -1); } @@ -223,10 +223,10 @@ static always_inline void gen_qemu_stq_c (TCGv t0, TCGv t1, int flags) l2 = gen_new_label(); tcg_gen_brcond_i64(TCG_COND_NE, cpu_lock, t1, l1); tcg_gen_qemu_st64(t0, t1, flags); - tcg_gen_movi_i64(t0, 0); + tcg_gen_movi_i64(t0, 1); tcg_gen_br(l2); gen_set_label(l1); - tcg_gen_movi_i64(t0, 1); + tcg_gen_movi_i64(t0, 0); gen_set_label(l2); tcg_gen_movi_i64(cpu_lock, -1); } |