Re: [Qemu-devel] [PATCH 1/1] Fix cacheline detection on FreeBSD/powerpc.

2019-09-19 Thread Laurent Vivier
Le 21/08/2019 à 10:25, Laurent Vivier a écrit : > From: Justin Hibbits > > machdep.cacheline_size is an integer, not a long. Since PowerPC is > big-endian this causes sysctlbyname() to fill in the upper bits of the > argument, rather than the correct 'lower bits' of the word. Specify the > corr

[Qemu-devel] [PATCH 1/1] Fix cacheline detection on FreeBSD/powerpc.

2019-08-21 Thread Laurent Vivier
From: Justin Hibbits machdep.cacheline_size is an integer, not a long. Since PowerPC is big-endian this causes sysctlbyname() to fill in the upper bits of the argument, rather than the correct 'lower bits' of the word. Specify the correct type to fix this. Fixes: b255b2c8a548 ("util: add cache