MtrrLib code queries the CPUID leaf 7h result if support.
Update Test code temporary to claim the CPUID only
supports max leaf as 1 so MtrrLib skips to query CPUID leaf 7h.
Signed-off-by: Ray Ni <ray.ni@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Ahmad Anadani <ahmad.anadani@intel.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
/** @file\r
Unit tests of the MtrrLib instance of the MtrrLib class\r
\r
- Copyright (c) 2018 - 2020, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2018 - 2023, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
)\r
{\r
switch (Index) {\r
+ case CPUID_SIGNATURE:\r
+ if (Eax != NULL) {\r
+ *Eax = CPUID_VERSION_INFO;\r
+ }\r
+\r
+ return Index;\r
+ break;\r
case CPUID_VERSION_INFO:\r
if (Edx != NULL) {\r
*Edx = mCpuidVersionInfoEdx.Uint32;\r