mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
PowerPC improvments:
- add missing 64 bits rotate instructions - safely define TARGET_PPCSPE when 64 bits registers are used a separate target will be needed to use it in 32 bits mode on 32 bits hosts. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2527 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e864cabdc0
commit
51789c410b
3 changed files with 104 additions and 25 deletions
|
@ -23,13 +23,18 @@
|
|||
#include "config.h"
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined(TARGET_PPC64) || (HOST_LONG_BITS >= 64)
|
||||
/* When using 64 bits temporary registers,
|
||||
* we can use 64 bits GPR with no extra cost
|
||||
*/
|
||||
#define TARGET_PPCSPE
|
||||
#endif
|
||||
|
||||
#if defined (TARGET_PPC64)
|
||||
typedef uint64_t ppc_gpr_t;
|
||||
#define TARGET_LONG_BITS 64
|
||||
#define TARGET_GPR_BITS 64
|
||||
#define REGX "%016" PRIx64
|
||||
/* We can safely use PowerPC SPE extension when compiling PowerPC 64 */
|
||||
#define TARGET_PPCSPE
|
||||
#elif defined(TARGET_PPCSPE)
|
||||
/* GPR are 64 bits: used by vector extension */
|
||||
typedef uint64_t ppc_gpr_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue