aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-06 15:28:20 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-06 15:28:20 +0000
commit95f9397c75fad78ccb9eb8e878035554f0e3763d (patch)
tree9e79b97a4db653daab52e65258070ac9279ccc28 /target-sparc
parent4105de6732f771ea64113851a2ee7172c34d3a7a (diff)
Fix offset handling for ASI loads and stores (Vince Weaver)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4988 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/translate.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index 0646b74137..9d5230fa53 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -1641,13 +1641,11 @@ static inline void gen_clear_float_exceptions(void)
#ifdef TARGET_SPARC64
static inline TCGv gen_get_asi(int insn, TCGv r_addr)
{
- int asi, offset;
+ int asi;
TCGv r_asi;
if (IS_IMM) {
r_asi = tcg_temp_new(TCG_TYPE_I32);
- offset = GET_FIELD(insn, 25, 31);
- tcg_gen_addi_tl(r_addr, r_addr, offset);
tcg_gen_ld_i32(r_asi, cpu_env, offsetof(CPUSPARCState, asi));
} else {
asi = GET_FIELD(insn, 19, 26);