target-ppc: Make vgbbd Masks "static const"
PATCH 1/1 target-ppc: Make vgbbd Masks "static const"
Per Richard Henderson's review, the array of masks used in the vgbbd instruction should be declared as static const.
Signed-off-by Tom Musta <[email protected]>
--- target-ppc/int_helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
target-ppc/int_helper.c +1 -1
@@ -1075,7 +1075,7 @@ void helper_vbpermq(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b)#undef VBPERMQ_INDEX#undef VBPERMQ_DW -uint64_t VGBBD_MASKS [256 ] = { +static const uint64_t VGBBD_MASKS [256 ] = {0x0000000000000000ull ,/* 00 */ 0x0000000000000080ull ,/* 01 */ 0x0000000000008000ull ,/* 02 */
Signature · 1 line
1.7.1
Quoted 7 lines · Tom Musta
Per Richard Henderson's review, the array of masks used in the vgbbd instruction should be declared as static const.
Signed-off-by Tom Musta <[email protected]>--- target-ppc/int_helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Reviewed-by Richard Henderson <[email protected]>
r~