messages.cc revision 13325:86323e6cc8ec
14311SN/A/* 24657SN/A * Copyright 2018 Google, Inc. 34311SN/A * 44657SN/A * Redistribution and use in source and binary forms, with or without 54311SN/A * modification, are permitted provided that the following conditions are 64311SN/A * met: redistributions of source code must retain the above copyright 74657SN/A * notice, this list of conditions and the following disclaimer; 84657SN/A * redistributions in binary form must reproduce the above copyright 94657SN/A * notice, this list of conditions and the following disclaimer in the 104657SN/A * documentation and/or other materials provided with the distribution; 114657SN/A * neither the name of the copyright holders nor the names of its 124657SN/A * contributors may be used to endorse or promote products derived from 134311SN/A * this software without specific prior written permission. 144311SN/A * 154657SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 164657SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 174657SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 184657SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 194657SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 204657SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 214657SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 224657SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 234657SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 244657SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 254311SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 264311SN/A * 274657SN/A * Authors: Gabe Black 284657SN/A */ 294311SN/A 304311SN/A#include "systemc/ext/dt/fx/messages.hh" 314657SN/A#include "systemc/utils/report.hh" 324657SN/A 334311SN/Anamespace sc_core 344311SN/A{ 354657SN/A 364657SN/Aconst char SC_ID_INVALID_WL_[] = "total wordlength <= 0 is not valid"; 374657SN/Aconst char SC_ID_INVALID_N_BITS_[] = "number of bits < 0 is not valid"; 384657SN/Aconst char SC_ID_INVALID_DIV_WL_[] = "division wordlength <= 0 is not valid"; 394657SN/Aconst char SC_ID_INVALID_CTE_WL_[] = "constant wordlength <= 0 is not valid"; 404657SN/Aconst char SC_ID_INVALID_MAX_WL_[] = 414657SN/A "maximum wordlength <= 0 and != -1 is not valid"; 424657SN/Aconst char SC_ID_INVALID_FX_VALUE_[] = "invalid fixed-point value"; 434657SN/Aconst char SC_ID_INVALID_O_MODE_[] = "invalid overflow mode"; 444657SN/Aconst char SC_ID_OUT_OF_RANGE_[] = "index out of range"; 454311SN/Aconst char SC_ID_CONTEXT_BEGIN_FAILED_[] = "context begin failed"; 464311SN/Aconst char SC_ID_CONTEXT_END_FAILED_[] = "context end failed"; 474657SN/Aconst char SC_ID_WRAP_SM_NOT_DEFINED_[] = 484657SN/A "SC_WRAP_SM not defined for unsigned numbers"; 494657SN/A 504657SN/Anamespace 514311SN/A{ 524311SN/A 534311SN/Asc_gem5::DefaultReportMessages predefinedMessages{ 544657SN/A {300, SC_ID_INVALID_WL_}, 554657SN/A {301, SC_ID_INVALID_N_BITS_}, 564657SN/A {302, SC_ID_INVALID_DIV_WL_}, 574657SN/A {303, SC_ID_INVALID_CTE_WL_}, 584657SN/A {304, SC_ID_INVALID_MAX_WL_}, 594657SN/A {305, SC_ID_INVALID_FX_VALUE_}, 604657SN/A {306, SC_ID_INVALID_O_MODE_}, 614657SN/A {307, SC_ID_OUT_OF_RANGE_}, 624657SN/A {308, SC_ID_CONTEXT_BEGIN_FAILED_}, 634657SN/A {309, SC_ID_CONTEXT_END_FAILED_}, 644657SN/A {310, SC_ID_WRAP_SM_NOT_DEFINED_} 654311SN/A}; 664311SN/A 674311SN/A} // anonymous namespace 684657SN/A 694657SN/A} // namespace sc_core 704657SN/A