Fix aarch64 ftrace JIT condition testcase
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-aarch64-low.c
index 12fe2e666dd72573d46f7025651c809892dc62e6..d237bde67fd83c9b1c91e21e6c73eef582c423bc 100644 (file)
@@ -2258,7 +2258,7 @@ aarch64_emit_add (void)
   uint32_t *p = buf;
 
   p += emit_pop (p, x1);
-  p += emit_add (p, x0, x0, register_operand (x1));
+  p += emit_add (p, x0, x1, register_operand (x0));
 
   emit_ops_insns (buf, p - buf);
 }
@@ -2272,7 +2272,7 @@ aarch64_emit_sub (void)
   uint32_t *p = buf;
 
   p += emit_pop (p, x1);
-  p += emit_sub (p, x0, x0, register_operand (x1));
+  p += emit_sub (p, x0, x1, register_operand (x0));
 
   emit_ops_insns (buf, p - buf);
 }
This page took 0.023548 seconds and 4 git commands to generate.