mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
ppc: Convert GPR moves to TCG
Replace op_load_gpr_{T0,T1,T2} and op_store_{T0,T1,T2} with tcg_gen_mov_tl. Introduce TCG variables cpu_gpr[0..31]. For the SPE extension, assure that ppc_gpr_t is only uint64_t for ppc64. Introduce TCG variables cpu_gprh[0..31] for upper 32 bits on ppc and helpers gen_{load,store}_gpr64. Based on suggestions by Aurelien, Thiemo and Blue. Signed-off-by: Andreas Faerber <andreas.faerber@web.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5153 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
4f821e1757
commit
f78fb44e82
3 changed files with 390 additions and 454 deletions
|
@ -33,17 +33,7 @@ typedef uint64_t ppc_gpr_t;
|
|||
|
||||
#else /* defined (TARGET_PPC64) */
|
||||
/* PowerPC 32 definitions */
|
||||
#if (HOST_LONG_BITS >= 64)
|
||||
/* When using 64 bits temporary registers,
|
||||
* we can use 64 bits GPR with no extra cost
|
||||
* It's even an optimization as this will prevent
|
||||
* the compiler to do unuseful masking in the micro-ops.
|
||||
*/
|
||||
typedef uint64_t ppc_gpr_t;
|
||||
#else /* (HOST_LONG_BITS >= 64) */
|
||||
typedef uint32_t ppc_gpr_t;
|
||||
#endif /* (HOST_LONG_BITS >= 64) */
|
||||
|
||||
#define TARGET_LONG_BITS 32
|
||||
|
||||
#if defined(TARGET_PPCEMB)
|
||||
|
@ -541,7 +531,7 @@ struct CPUPPCState {
|
|||
/* First are the most commonly used resources
|
||||
* during translated code execution
|
||||
*/
|
||||
#if (HOST_LONG_BITS == 32)
|
||||
#if (TARGET_LONG_BITS > HOST_LONG_BITS) || !defined(TARGET_PPC64)
|
||||
/* temporary fixed-point registers
|
||||
* used to emulate 64 bits registers on 32 bits hosts
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue