mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
target-ppc: Add xscvdphp, xscvhpdp
xscvdphp: VSX Scalar round & Convert Double-Precision format to Half-Precision format xscvhpdp: VSX Scalar Convert Half-Precision format to Double-Precision format Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
ffc67420f9
commit
f566c0474a
6 changed files with 62 additions and 0 deletions
|
@ -211,10 +211,12 @@ typedef union _ppc_vsr_t {
|
|||
|
||||
#if defined(HOST_WORDS_BIGENDIAN)
|
||||
#define VsrB(i) u8[i]
|
||||
#define VsrH(i) u16[i]
|
||||
#define VsrW(i) u32[i]
|
||||
#define VsrD(i) u64[i]
|
||||
#else
|
||||
#define VsrB(i) u8[15 - (i)]
|
||||
#define VsrH(i) u16[7 - (i)]
|
||||
#define VsrW(i) u32[3 - (i)]
|
||||
#define VsrD(i) u64[1 - (i)]
|
||||
#endif
|
||||
|
@ -241,4 +243,5 @@ static inline void putVSR(int n, ppc_vsr_t *vsr, CPUPPCState *env)
|
|||
}
|
||||
}
|
||||
|
||||
void helper_compute_fprf_float16(CPUPPCState *env, float16 arg);
|
||||
#endif /* PPC_INTERNAL_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue