From fab5d06db8a9cc033af1007f2b10eb9b35535b4c Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 14 Dec 2010 15:16:02 +0200 Subject: drc: fix: storelr should also use AGR --- libpcsxcore/new_dynarec/new_dynarec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libpcsxcore/new_dynarec') diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index 1994d8e..bbff275 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -3193,11 +3193,13 @@ void storelr_assemble(int i,struct regstat *i_regs) int case1,case2,case3; int done0,done1,done2; int memtarget,c=0; + int agr=AGEN1+(i&1); u_int hr,reglist=0; th=get_reg(i_regs->regmap,rs2[i]|64); tl=get_reg(i_regs->regmap,rs2[i]); s=get_reg(i_regs->regmap,rs1[i]); - temp=get_reg(i_regs->regmap,-1); + temp=get_reg(i_regs->regmap,agr); + if(temp<0) temp=get_reg(i_regs->regmap,-1); offset=imm[i]; if(s>=0) { c=(i_regs->isconst>>s)&1; -- cgit v1.2.3