Page MenuHomeFreeBSD

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

Authored by bdragon on Jan 18 2020, 3:25 AM.
Referenced Files
Unknown Object (File)
Jan 24 2024, 3:37 AM
Unknown Object (File)
Jan 19 2024, 8:53 PM
Unknown Object (File)
Jan 16 2024, 8:55 PM
Unknown Object (File)
Jan 15 2024, 3:16 AM
Unknown Object (File)
Dec 20 2023, 2:11 AM
Unknown Object (File)
Dec 17 2023, 11:26 PM
Unknown Object (File)
Nov 28 2023, 4:27 PM
Unknown Object (File)
Nov 28 2023, 4:27 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