]> Git Repo - qemu.git/commitdiff
tcg/tci: Move call-return regs to end of tcg_target_reg_alloc_order
authorRichard Henderson <[email protected]>
Mon, 1 Feb 2021 09:23:07 +0000 (23:23 -1000)
committerRichard Henderson <[email protected]>
Sat, 19 Jun 2021 15:51:11 +0000 (08:51 -0700)
As the only call-clobbered regs for TCI, these should
receive the least priority.

Tested-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
tcg/tci/tcg-target.c.inc

index 8f3f9ef7d3ae2a9f18c6868aaf71f9e7974b6c1a..d54c01b9de9ed7e1432918d397689bb4322faf26 100644 (file)
@@ -170,8 +170,6 @@ static TCGConstraintSetIndex tcg_target_op_def(TCGOpcode op)
 }
 
 static const int tcg_target_reg_alloc_order[] = {
-    TCG_REG_R0,
-    TCG_REG_R1,
     TCG_REG_R2,
     TCG_REG_R3,
     TCG_REG_R4,
@@ -186,6 +184,8 @@ static const int tcg_target_reg_alloc_order[] = {
     TCG_REG_R13,
     TCG_REG_R14,
     TCG_REG_R15,
+    TCG_REG_R1,
+    TCG_REG_R0,
 };
 
 #if MAX_OPC_PARAM_IARGS != 6
This page took 0.023069 seconds and 4 git commands to generate.