summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Henderson2011-05-20 22:07:25 +0200
committerRichard Henderson2011-05-31 19:18:05 +0200
commite52458fe29ac6f2c0edb17c3f78164200cd047b8 (patch)
treee20bdd055fa7b134b61cc89dbc8f32843208728d
parenttarget-alpha: Fix translation of PALmode memory insns. (diff)
downloadqemu-e52458fe29ac6f2c0edb17c3f78164200cd047b8.tar.gz
qemu-e52458fe29ac6f2c0edb17c3f78164200cd047b8.tar.xz
qemu-e52458fe29ac6f2c0edb17c3f78164200cd047b8.zip
target-alpha: Fix system store_conditional
This code contained typos, as it had never been compiled. Signed-off-by: Richard Henderson <rth@twiddle.net>
-rw-r--r--target-alpha/translate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 73c19d9662..851a045681 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -326,7 +326,7 @@ static ExitStatus gen_store_conditional(DisasContext *ctx, int ra, int rb,
#if defined(CONFIG_USER_ONLY)
addr = cpu_lock_st_addr;
#else
- addr = tcg_local_new();
+ addr = tcg_temp_local_new();
#endif
if (rb != 31) {
@@ -349,7 +349,7 @@ static ExitStatus gen_store_conditional(DisasContext *ctx, int ra, int rb,
lab_fail = gen_new_label();
lab_done = gen_new_label();
- tcg_gen_brcond(TCG_COND_NE, addr, cpu_lock_addr, lab_fail);
+ tcg_gen_brcond_i64(TCG_COND_NE, addr, cpu_lock_addr, lab_fail);
val = tcg_temp_new();
if (quad) {
@@ -357,7 +357,7 @@ static ExitStatus gen_store_conditional(DisasContext *ctx, int ra, int rb,
} else {
tcg_gen_qemu_ld32s(val, addr, ctx->mem_idx);
}
- tcg_gen_brcond(TCG_COND_NE, val, cpu_lock_value, lab_fail);
+ tcg_gen_brcond_i64(TCG_COND_NE, val, cpu_lock_value, lab_fail);
if (quad) {
tcg_gen_qemu_st64(cpu_ir[ra], addr, ctx->mem_idx);