~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to linux-user/arm/nwfpe/fpopcode.c

  • Committer: Bazaar Package Importer
  • Author(s): Riku Voipio, Josh Triplett, Riku Voipio
  • Date: 2009-07-29 13:28:05 UTC
  • mfrom: (1.4.1 upstream)
  • mto: (12.1.1 sid) (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20090729132805-cau7rfexh7dawyb8
Tags: 0.10.50+git20090729-1
[ Josh Triplett ]
* Remove myself from Uploaders.

[ Riku Voipio ]
* new upstream RC version
* nuke all linux-user patches (applied upstream)
  06_exit_segfault
  12_signal_powerpc_support
  21_net_soopts
  30_syscall_ipc
  32_syscall_sysctl
  35_syscall_sockaddr
  48_signal_terminate
  55_unmux_socketcall
* nuke all other applied-upstream patches
  01_nostrip (better version upstream)
  07_i386_exec_name (can be reintroduced in debian/rules)
  50_linuxbios_isa_bios_ram (shouldn't be needed anymore)
  51_linuxbios_piix_ram_size (applied)
  56_dhcp (crap)
  60_ppc_ld (reintroduce if needed)
  64_ppc_asm_constraints (ditto)
  66_tls_ld.patch (ditto)
  81_compile_dtb.patch (applied upstream)
  82_qemu-img_decimal (ditto)
* move to git
* simplify build rules
* Correct my email address

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
  0x41200000                            /* single 10.0 */
60
60
};
61
61
 
62
 
unsigned int getTransferLength(const unsigned int opcode)
63
 
{
64
 
  unsigned int nRc;
65
 
 
66
 
  switch (opcode & MASK_TRANSFER_LENGTH)
67
 
  {
68
 
    case 0x00000000: nRc = 1; break; /* single precision */
69
 
    case 0x00008000: nRc = 2; break; /* double precision */
70
 
    case 0x00400000: nRc = 3; break; /* extended precision */
71
 
    default: nRc = 0;
72
 
  }
73
 
 
74
 
  return(nRc);
75
 
}
76
 
 
77
62
unsigned int getRegisterCount(const unsigned int opcode)
78
63
{
79
64
  unsigned int nRc;
90
75
  return(nRc);
91
76
}
92
77
 
93
 
unsigned int getRoundingPrecision(const unsigned int opcode)
94
 
{
95
 
  unsigned int nRc;
96
 
 
97
 
  switch (opcode & MASK_ROUNDING_PRECISION)
98
 
  {
99
 
    case 0x00000000: nRc = 1; break;
100
 
    case 0x00000080: nRc = 2; break;
101
 
    case 0x00080000: nRc = 3; break;
102
 
    default: nRc = 0;
103
 
  }
104
 
 
105
 
  return(nRc);
106
 
}
107
 
 
108
78
unsigned int getDestinationSize(const unsigned int opcode)
109
79
{
110
80
  unsigned int nRc;
141
111
    0xFFFF, // AL always
142
112
    0 // NV
143
113
};
144
 
 
145
 
unsigned int checkCondition(const unsigned int opcode, const unsigned int ccodes)
146
 
{
147
 
  return (aCC[opcode>>28] >> (ccodes>>28)) & 1;
148
 
}