Skip to content

Commit 80862be

Browse files
committed
Merge branch 'arm-fix'
Fix (hardware) floating-point argument handling on ARM. Fixed: #681 Signed-off-by: Namhyung Kim <[email protected]>
2 parents 47c1ddc + 747fa06 commit 80862be

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

arch/arm/mcount-support.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ int mcount_get_register_arg(struct mcount_arg_context *ctx,
359359
ctx->val.i = ARG4(regs);
360360
break;
361361

362-
#ifdef HAVE_UFT_ARM_HARDFP
362+
#ifdef HAVE_ARM_HARDFP
363363
case UFT_ARM_REG_S0:
364364
asm volatile ("vstr %%s0, %0\n" : "=m" (ctx->val.v));
365365
break;

cmds/replay.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,10 @@ void get_argspec_string(struct uftrace_task_reader *task,
720720
lm = len_mod[idx];
721721

722722
snprintf(fmtstr, sizeof(fmtstr), "%%#%s%c", lm, fmt);
723-
print_args(fmtstr, val.ll);
723+
if (spec->size == 8)
724+
print_args(fmtstr, val.ll);
725+
else
726+
print_args(fmtstr, val.i);
724727
}
725728
}
726729

0 commit comments

Comments
 (0)