--- qemu/linux-user/arm/nwfpe/fpopcode.c 2018/04/24 16:52:09 1.1 +++ qemu/linux-user/arm/nwfpe/fpopcode.c 2018/04/24 18:26:41 1.1.1.3 @@ -15,8 +15,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with this program; if not, see . */ #include "fpa11.h" @@ -59,21 +58,6 @@ const float32 float32Constant[] = { 0x41200000 /* single 10.0 */ }; -unsigned int getTransferLength(const unsigned int opcode) -{ - unsigned int nRc; - - switch (opcode & MASK_TRANSFER_LENGTH) - { - case 0x00000000: nRc = 1; break; /* single precision */ - case 0x00008000: nRc = 2; break; /* double precision */ - case 0x00400000: nRc = 3; break; /* extended precision */ - default: nRc = 0; - } - - return(nRc); -} - unsigned int getRegisterCount(const unsigned int opcode) { unsigned int nRc; @@ -90,21 +74,6 @@ unsigned int getRegisterCount(const unsi return(nRc); } -unsigned int getRoundingPrecision(const unsigned int opcode) -{ - unsigned int nRc; - - switch (opcode & MASK_ROUNDING_PRECISION) - { - case 0x00000000: nRc = 1; break; - case 0x00000080: nRc = 2; break; - case 0x00080000: nRc = 3; break; - default: nRc = 0; - } - - return(nRc); -} - unsigned int getDestinationSize(const unsigned int opcode) { unsigned int nRc; @@ -141,8 +110,3 @@ static const unsigned short aCC[16] = { 0xFFFF, // AL always 0 // NV }; - -unsigned int checkCondition(const unsigned int opcode, const unsigned int ccodes) -{ - return (aCC[opcode>>28] >> (ccodes>>28)) & 1; -}