diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-04 15:19:04 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-04 15:19:04 +0100 |
commit | 65a650c2a5ed2f33357ba9d29d0f56f6b131333a (patch) | |
tree | ab101c2f44b125821a30f490c36bfabcacb1207d /linux-user/arm/nwfpe/fpopcode.c | |
parent | 6bb72b184d7fe0e1e08f9cca722e78d1d24920c2 (diff) | |
download | qemu-65a650c2a5ed2f33357ba9d29d0f56f6b131333a.zip qemu-65a650c2a5ed2f33357ba9d29d0f56f6b131333a.tar.gz qemu-65a650c2a5ed2f33357ba9d29d0f56f6b131333a.tar.bz2 |
Fix compiler warnings in nwfpe code.
Signed-off-by: Paul Brook <paul@codesourcery.com>
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 a733a1d..1e07e60 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; -} |