selftests/powerpc: Rework FPU stack placement macros and move to header file
authorCyril Bur <cyrilbur@gmail.com>
Fri, 23 Sep 2016 06:18:14 +0000 (16:18 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 09:10:11 +0000 (20:10 +1100)
commitbe4a9f56666af94eccf7993661c1a62db033bff9
treead5e0013f0bf9bdad486bf7219aa263f84197f49
parent65ca668f58a260e144621fd93a413da67635b999
selftests/powerpc: Rework FPU stack placement macros and move to header file

The FPU regs are placed at the top of the stack frame. Currently the
position expected to be passed to the macro. The macros now should be
passed the stack frame size and from there they can calculate where to
put the regs, this makes the use simpler.

Also move them to a header file to be used in an different area of the
powerpc selftests

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/fpu_asm.h [new file with mode: 0644]
tools/testing/selftests/powerpc/math/fpu_asm.S