/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Parameters.h"
#include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Types.h"
#include <sstream>
using namespace std;

namespace morpheo                    {
namespace behavioural {
namespace stage_1_ifetch {
namespace predictor {
namespace meta_predictor {
namespace two_level_branch_predictor {
namespace two_level_branch_predictor_glue {


  string Parameters::msg_error(void)
  {
    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","Begin");

    string msg = "";
    
    if (_have_pht and (_pht_size_address_share >= _pht_size_address))
      {
	msg += "  - You can't have higher pht_size_address_share >= pht_size_address\n";
	msg += "    * pht_size_address                : " + toString(_pht_size_address      ) + "\n";
	msg += "    * pht_size_address_share          : " + toString(_pht_size_address_share) + "\n";
      }

    return msg;

    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","End");
  };

}; // end namespace two_level_branch_predictor_glue
}; // end namespace two_level_branch_predictor
}; // end namespace meta_predictor
}; // end namespace predictor
}; // end namespace stage_1_ifetch
}; // end namespace behavioural
}; // end namespace morpheo              
