Skip to content

Commit

Permalink
added check num regions against configured regions
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstendb-ARM committed Jun 25, 2024
1 parent 17c496c commit 9bea1e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/svdconv/SVDConv/src/SVDConv_Msgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ const MsgTable SvdConv::msgTable = {
{ "M388", { MsgLevel::LEVEL_ERROR, CRLF_B, "MVE Floating-Point support is set but MVE is not set" } },
{ "M389", { MsgLevel::LEVEL_ERROR, CRLF_B, "Specified <deviceNumInterrupts>: '%NUM%' greater or equal '%NAME%': '%NUM2%'."} }, // 05.05.2020
{ "M390", { MsgLevel::LEVEL_WARNING3, CRLF_B, "Checking IRQ '%NAME%': CPU unknown (see <cpu>). Assuming a maximum of %NUM% external Interrupts."} }, // 13.05.2020
{ "M391", { MsgLevel::LEVEL_WARNING, CRLF_B, "CPU: configured num of SAU regions '%NUM%' greater than <sauNumRegions> value: %NUM2%" } },

// 500... SfrCC2 related Data modification Errors
{ "M500", { MsgLevel::LEVEL_ERROR, CRLF_B, "" } },
Expand Down
3 changes: 3 additions & 0 deletions tools/svdconv/SVDModel/src/SvdCpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ bool SvdCpu::CheckItem()
m_sauRegionsConfig->Invalidate();
}
}
else if(m_sauNumRegions < m_sauRegionsConfig->GetChildCount()) {
LogMsg("M391", NUM(m_sauRegionsConfig->GetChildCount()), NUM2(m_sauNumRegions),lineNo);
}
}

if(m_pmuPresent) {
Expand Down

0 comments on commit 9bea1e9

Please sign in to comment.