source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src/Parameters_msg_error.cpp @ 48

Last change on this file since 48 was 48, checked in by rosiere, 17 years ago

Modification des Makefile : pas de creation inutile de shell

File size: 2.0 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Parameters.h"
9#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Types.h"
10#include <sstream>
11using namespace std;
12
13namespace morpheo                    {
14namespace behavioural {
15namespace core {
16namespace multi_front_end {
17namespace front_end {
18namespace prediction_unit {
19namespace direction {
20
21namespace meta_predictor {
22namespace two_level_branch_predictor {
23namespace two_level_branch_predictor_glue {
24
25
26  string Parameters::msg_error(void)
27  {
28    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","Begin");
29
30    string msg = "";
31   
32    if ((_have_bht and _have_pht) and (_pht_size_address_share >= _pht_size_address))
33      {
34        msg += "  - You can't have higher pht_size_address_share >= pht_size_address\n";
35        msg += "    * pht_size_address                : " + toString(_pht_size_address      ) + "\n";
36        msg += "    * pht_size_address_share          : " + toString(_pht_size_address_share) + "\n";
37      }
38    if ((_have_bht and _have_pht) and (_bht_size_history > _pht_size_address))
39      {
40        msg += "  - You can't have higher bht_size_history > pht_size_address\n";
41        msg += "    * bht_size_history                : " + toString(_bht_size_history      ) + "\n";
42        msg += "    * pht_size_address                : " + toString(_pht_size_address      ) + "\n";
43      }
44
45    return msg;
46
47    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","End");
48  };
49
50}; // end namespace two_level_branch_predictor_glue
51}; // end namespace two_level_branch_predictor
52}; // end namespace meta_predictor
53
54}; // end namespace core
55}; // end namespace multi_front_end
56}; // end namespace front_end
57}; // end namespace prediction_unit
58}; // end namespace direction
59
60}; // end namespace behavioural
61}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.