Page MenuHomeFreeBSD

[PowerPC] Fix emulators/qemu40 cacheline detection on powerpc
ClosedPublic

Authored by bdragon on Jan 18 2020, 3:25 AM.
Referenced Files
F102992959: D23246.id66955.diff
Tue, Nov 19, 2:19 PM
Unknown Object (File)
Oct 4 2024, 8:51 PM
Unknown Object (File)
Oct 4 2024, 4:44 AM
Unknown Object (File)
Oct 4 2024, 1:51 AM
Unknown Object (File)
Oct 1 2024, 10:25 PM
Unknown Object (File)
Oct 1 2024, 2:25 PM
Unknown Object (File)
Oct 1 2024, 1:39 PM
Unknown Object (File)
Sep 29 2024, 5:25 PM
Subscribers

Details

Summary

This is qemu patch https://github.com/qemu/qemu/commit/5ca156cfde0f3821f15988619e51cf3cda99aaa6.patch

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
Assertion failed: ((isize & (isize - 1)) == 0), function init_cache_info, file util/cacheinfo.c, line 179.
Abort trap

when running qemu on FreeBSD powerpc.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

linimon retitled this revision from [PowerPC] Fix qemu cacheline detection on powerpc to [PowerPC] Fix emulators/qemu40 cacheline detection on powerpc.Jan 19 2020, 9:09 AM
linimon added a reviewer: bofh.
This revision is now accepted and ready to land.Apr 27 2020, 8:19 PM