Spill and Fill handlers are actually n*4 + the start address

--HG--
extra : convert_revision : a42f01a84e4b7ba9e6029df50e1612d410a8ba22
This commit is contained in:
Ali Saidi 2007-01-20 12:34:00 -05:00
parent ae0d8d1681
commit 6e0f1c6062

View file

@ -471,9 +471,9 @@ decode OP default Unknown::unknown()
if(NWindows - 2 - Cansave == 0) if(NWindows - 2 - Cansave == 0)
{ {
if(Otherwin) if(Otherwin)
fault = new SpillNOther(Wstate<5:3>); fault = new SpillNOther(4*Wstate<5:3>);
else else
fault = new SpillNNormal(Wstate<2:0>); fault = new SpillNNormal(4*Wstate<2:0>);
} }
}}); }});
0x2C: decode MOVCC3 0x2C: decode MOVCC3
@ -893,9 +893,9 @@ decode OP default Unknown::unknown()
if(Canrestore == 0) if(Canrestore == 0)
{ {
if(Otherwin) if(Otherwin)
fault = new FillNOther(Wstate<5:3>); fault = new FillNOther(4*Wstate<5:3>);
else else
fault = new FillNNormal(Wstate<2:0>); fault = new FillNNormal(4*Wstate<2:0>);
} }
else else
{ {
@ -949,9 +949,9 @@ decode OP default Unknown::unknown()
if(Cansave == 0) if(Cansave == 0)
{ {
if(Otherwin) if(Otherwin)
fault = new SpillNOther(Wstate<5:3>); fault = new SpillNOther(4*Wstate<5:3>);
else else
fault = new SpillNNormal(Wstate<2:0>); fault = new SpillNNormal(4*Wstate<2:0>);
//Cwp = (Cwp + 2) % NWindows; //Cwp = (Cwp + 2) % NWindows;
} }
else if(Cleanwin - Canrestore == 0) else if(Cleanwin - Canrestore == 0)
@ -975,9 +975,9 @@ decode OP default Unknown::unknown()
if(Canrestore == 0) if(Canrestore == 0)
{ {
if(Otherwin) if(Otherwin)
fault = new FillNOther(Wstate<5:3>); fault = new FillNOther(4*Wstate<5:3>);
else else
fault = new FillNNormal(Wstate<2:0>); fault = new FillNNormal(4*Wstate<2:0>);
} }
else else
{ {