summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-03-15 14:16:32 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2022-03-15 14:18:31 +0100
commitda36b211ab9f0d00b0128d9daaf32eba5ab5e56e (patch)
tree50f45d33251711b5e581d7528e4c756fd29ad0fd
parent01142fa0594b6d3efe05214c844012deec1afc3d (diff)
downloadroux-da36b211ab9f0d00b0128d9daaf32eba5ab5e56e.tar.gz
homogenize riscv and arm abis
-rw-r--r--rv64/abi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rv64/abi.c b/rv64/abi.c
index ae53c61..0baaa67 100644
--- a/rv64/abi.c
+++ b/rv64/abi.c
@@ -307,8 +307,8 @@ argsclass(Ins *i0, Ins *i1, Class *carg, int retptr)
 			break;
 		case Opare:
 		case Oarge:
-			*c->cls = Kl;
 			*c->reg = T5;
+			*c->cls = Kl;
 			envc = 1;
 			break;
 		}