From 1e0571b53fceec100c1cddbc4f29f95ae79c3f02 Mon Sep 17 00:00:00 2001 From: Martin Peschke Date: Tue, 28 Feb 2017 19:32:00 +0100 Subject: p9_xip_tool: fix ring dissect warnings Fixes "Ambiguity on input PARMS for calling SEEPROM Ring copy API." for p9_xip_tool dissect .ring Change-Id: If82dddc3a6eba516b0a5ba9bc213074095daee41 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37201 Reviewed-by: Claus M. Olsen Tested-by: Jenkins Server Tested-by: PPE CI Reviewed-by: Sumit Kumar Reviewed-by: Martin Peschke Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37205 Reviewed-by: Hostboot Team Tested-by: FSP CI Jenkins Reviewed-by: Sachin Gupta --- src/import/chips/p9/xip/p9_xip_tool.C | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/import/chips') diff --git a/src/import/chips/p9/xip/p9_xip_tool.C b/src/import/chips/p9/xip/p9_xip_tool.C index 081249f9..ee27ec1e 100644 --- a/src/import/chips/p9/xip/p9_xip_tool.C +++ b/src/import/chips/p9/xip/p9_xip_tool.C @@ -1870,6 +1870,13 @@ int dissectRingSectionTor( void* i_ringSection, for (ppeType = 0; ppeType < NUM_PPE_TYPES; ppeType++) { + if ((i_imageMagicNo == P9_XIP_MAGIC_SGPE && ppeType != SGPE) || + (i_imageMagicNo == P9_XIP_MAGIC_CME && ppeType != CME) || + (i_imageMagicNo == P9_XIP_MAGIC_SEEPROM && ppeType != SBE)) + { + continue; + } + //-------------------- // Ring variant loop. // - Base, cache, risk, override, overlay -- cgit v1.2.1