http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46396
Summary: gcc not detect caches for VIA CPUs Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassig...@gcc.gnu.org ReportedBy: maha...@eu.by Created attachment 22346 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22346 via_caches.patch gcc not detect caches for VIA CPUs. But this task is too simple: according to Linux kernel code, "detect_caches_amd" function code is not so vendor-specific, and used in kernel also for any x86_64, VIA/Centaur, Transmeta and Cyrix family-5/model-5. By some reasons (actual & tech) I suggest only code for VIA/Centaur CPUs (works fine for C7). This patch sure applicable to 4.5 & trunk branches and must for any.