Alexey Kardashevskiy 95444afcab ppc: Define SETFIELD for the ppc target
It keeps repeating, move it to the header. This uses __builtin_ffsll() to
allow using the macros in #define.

This is not using the QEMU's FIELD macros as this would require changing
all such macros found in skiboot (the PPC PowerNV firmware).

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220628080544.1509428-1-aik@ozlabs.ru>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2022-07-06 10:22:38 -03:00
..
2022-06-08 19:38:47 +01:00
2022-06-08 19:38:47 +01:00
2022-06-08 19:38:47 +01:00
2022-04-21 09:27:54 -07:00
2021-11-09 10:11:27 +01:00
2021-11-09 10:11:27 +01:00
2022-06-28 11:06:02 +02:00
2021-06-05 21:10:42 +02:00
2022-06-08 19:38:47 +01:00
2022-06-08 19:38:47 +01:00