summary refs log tree commit diff stats
path: root/linux-user/arm/nwfpe/fpopcode.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-05-04 15:19:04 +0100
committerPaul Brook <paul@codesourcery.com>2009-05-04 15:19:04 +0100
commit65a650c2a5ed2f33357ba9d29d0f56f6b131333a (patch)
treeab101c2f44b125821a30f490c36bfabcacb1207d /linux-user/arm/nwfpe/fpopcode.c
parent6bb72b184d7fe0e1e08f9cca722e78d1d24920c2 (diff)
downloadfocaccia-qemu-65a650c2a5ed2f33357ba9d29d0f56f6b131333a.tar.gz
focaccia-qemu-65a650c2a5ed2f33357ba9d29d0f56f6b131333a.zip
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.c35
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;
-}