driver-i386.c (describe_cache): Add l2_sizekb argument.
authorZuxy Meng <zuxy.meng@gmail.com>
Fri, 4 Apr 2008 07:39:12 +0000 (07:39 +0000)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 4 Apr 2008 07:39:12 +0000 (09:39 +0200)
commitf4a1dd0dc725bf8baf3027afeca750642cb31ee1
tree8a6707546e182b6c07cb0346d498ea12863279c4
parent3ee909cb673969faac7dad765a85df6122a79a78
driver-i386.c (describe_cache): Add l2_sizekb argument.

* 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.

From-SVN: r133890
gcc/ChangeLog
gcc/config/i386/driver-i386.c