diff options
Diffstat (limited to 'linux-user/arm/nwfpe/fpopcode.c')
-rw-r--r-- | linux-user/arm/nwfpe/fpopcode.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/linux-user/arm/nwfpe/fpopcode.c b/linux-user/arm/nwfpe/fpopcode.c index a733a1d1de..1e07e60482 100644 --- a/linux-user/arm/nwfpe/fpopcode.c +++ b/linux-user/arm/nwfpe/fpopcode.c @@ -59,21 +59,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 +75,6 @@ unsigned int getRegisterCount(const unsigned int opcode) 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 +111,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; -} |