blob: cd447d4a0c6ad1cb22ce0a8fe8f3adb471b423e4 [file] [log] [blame]
cerion85665ca2005-06-20 15:51:07 +00001
2/*--------------------------------------------------------------------*/
njn9a0cba42007-04-15 22:15:57 +00003/*--- PPC32-specific definitions. cg-ppc32.c ---*/
cerion85665ca2005-06-20 15:51:07 +00004/*--------------------------------------------------------------------*/
5
6/*
7 This file is part of Cachegrind, a Valgrind tool for cache
8 profiling programs.
9
njn9a0cba42007-04-15 22:15:57 +000010 Copyright (C) 2005-2007 Nicholas Nethercote
njnbd774032005-08-04 19:26:54 +000011 njn@valgrind.org
cerion85665ca2005-06-20 15:51:07 +000012
13 This program is free software; you can redistribute it and/or
14 modify it under the terms of the GNU General Public License as
15 published by the Free Software Foundation; either version 2 of the
16 License, or (at your option) any later version.
17
18 This program is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
26 02111-1307, USA.
27
28 The GNU General Public License is contained in the file COPYING.
29*/
30
31#include "pub_tool_basics.h"
32#include "pub_tool_libcbase.h"
33#include "pub_tool_libcassert.h"
34#include "pub_tool_libcprint.h"
35
36#include "cg_arch.h"
37
njnaf839f52005-06-23 03:27:57 +000038void VG_(configure_caches)(cache_t* I1c, cache_t* D1c, cache_t* L2c,
39 Bool all_caches_clo_defined)
cerion85665ca2005-06-20 15:51:07 +000040{
sewardj97ad9ab2005-07-08 09:45:43 +000041 // Set caches to default.
42 *I1c = (cache_t) { 65536, 2, 64 };
43 *D1c = (cache_t) { 65536, 2, 64 };
44 *L2c = (cache_t) { 262144, 8, 64 };
cerion85665ca2005-06-20 15:51:07 +000045
njn55c6e552005-11-17 19:32:59 +000046 // Warn if config not completely specified from cmd line. Note that
47 // this message is slightly different from the one we give on x86/AMD64
48 // when auto-detection fails; this lets us filter out this one (which is
49 // not important) in the regression test suite without filtering the
50 // x86/AMD64 one (which we want to see if it ever occurs in the
51 // regression test suite).
njn42c83552005-12-05 20:45:59 +000052 //
53 // If you change this message, please update
54 // cachegrind/tests/filter_stderr!
55 //
njn59cd1072005-11-12 21:57:09 +000056 if (!all_caches_clo_defined) {
sewardj97ad9ab2005-07-08 09:45:43 +000057 VG_(message)(Vg_DebugMsg,
njn9ad122b2005-11-17 19:28:18 +000058 "Warning: Cannot auto-detect cache config on PPC32, using one "
sewardj97ad9ab2005-07-08 09:45:43 +000059 "or more defaults ");
60 }
cerion85665ca2005-06-20 15:51:07 +000061}
62
63/*--------------------------------------------------------------------*/
64/*--- end ---*/
65/*--------------------------------------------------------------------*/