Commit 2c64aea4 authored by Russell King's avatar Russell King

[ARM] NWFPE 3: Eliminate setting of fType in CPDO worker functions.

Extending the idea in patch 2, we can eliminate the setting of fType
in {Single,Double,Extended}CPDO functions and always set it in
fpa11_cpdo.c to the ultimate destination size.
parent d65604fb
......@@ -174,7 +174,6 @@ unsigned int DoubleCPDO(const unsigned int opcode)
Fd = getFd(opcode);
fpa11->fpreg[Fd].fDouble = rFd;
fpa11->fType[Fd] = typeDouble;
return 1;
}
......@@ -168,7 +168,6 @@ unsigned int ExtendedCPDO(const unsigned int opcode)
Fd = getFd(opcode);
fpa11->fpreg[Fd].fExtended = rFd;
fpa11->fType[Fd] = typeExtended;
return 1;
}
......@@ -67,7 +67,7 @@ unsigned int EmulateCPDO(const unsigned int opcode)
default : nRc = 0;
}
/* The CPDO functions always set the destination type
/* The CPDO functions used to always set the destination type
to be the same as their working size. */
if ((0 != nRc) && (nDest != nType))
......@@ -112,7 +112,10 @@ unsigned int EmulateCPDO(const unsigned int opcode)
}
break;
}
}
if (nRc != 0)
{
fpa11->fType[Fd] = nDest;
}
......
......@@ -136,7 +136,6 @@ unsigned int SingleCPDO(const unsigned int opcode)
Fd = getFd(opcode);
fpa11->fpreg[Fd].fSingle = rFd;
fpa11->fType[Fd] = typeSingle;
return 1;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment