OSDN Git Service

* config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Apr 2008 07:39:12 +0000 (07:39 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Apr 2008 07:39:12 +0000 (07:39 +0000)
commit4c8b808dcf1f80b19d374d11f11376674e1e3393
tree8a6707546e182b6c07cb0346d498ea12863279c4
parentda19f93f55758fed4c919b19ad8db64726642e89
* config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
Pass L2 size as "--param l2-cache-size" to the compiler.
(decode_l2_cache): New function to decode L2 cache parameters using
0x8000006 extended cpuid function.
(detect_caches_amd): Determine parameters of L2 cache using
decode_l2_caches function.
(decode_caches_intel): Decode L2 cache parameters.
(detect_caches_intel): Determine L2 cache parameters using
decode_caches_intel and decode_l2_caches functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133890 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/driver-i386.c