summaryrefslogtreecommitdiffstats
path: root/target-sparc
diff options
context:
space:
mode:
authorblueswir12008-07-18 12:26:07 +0200
committerblueswir12008-07-18 12:26:07 +0200
commit8d7d8c4bb10ffeb6c875a821a2ad842b8eb09070 (patch)
treefdc05ed5ba9c66b1ad958f912987a918ab27f45e /target-sparc
parentOMAP2 EAC module. (diff)
downloadqemu-8d7d8c4bb10ffeb6c875a821a2ad842b8eb09070.tar.gz
qemu-8d7d8c4bb10ffeb6c875a821a2ad842b8eb09070.tar.xz
qemu-8d7d8c4bb10ffeb6c875a821a2ad842b8eb09070.zip
wrhpr hstick_cmpr is a store, not a load
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4887 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/translate.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index 929c12fa35..aac15454d0 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -2204,9 +2204,8 @@ static void disas_sparc_insn(DisasContext * dc)
tcg_gen_ext_i32_tl(cpu_dst, cpu_tmp32);
break;
case 31: // hstick_cmpr
- tcg_gen_trunc_tl_i32(cpu_tmp32, cpu_dst);
- tcg_gen_st_i32(cpu_tmp32, cpu_env,
- offsetof(CPUSPARCState, hstick_cmpr));
+ tcg_gen_ld_tl(cpu_dst, cpu_env,
+ offsetof(CPUSPARCState, hstick_cmpr));
break;
default:
goto illegal_insn;