public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Yanming Zhu" <zhuyanming@byosoft.com.cn>
To: devel@edk2.groups.io
Cc: Jordan Justen <jordan.l.justen@intel.com>,
	Andrew Fish <afish@apple.com>, Ray Ni <ray.ni@intel.com>,
	Liming Gao <liming.gao@intel.com>
Subject: [PATCH 3/3] EmulatorPkg/Cpu.c:Add PROCESSOR_CHARACTERISTIC_FLAGS struct information
Date: Thu, 29 Oct 2020 15:03:34 +0800	[thread overview]
Message-ID: <91fee9b929654e7ecbc9388adc24642211f8b96b.1603954985.git.zhuyanming@byosoft.com.cn> (raw)
In-Reply-To: <cover.1603954985.git.zhuyanming@byosoft.com.cn>

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2952

Add PROCESSOR_CHARACTERISTIC_FLAGS struct information in
SMBIOS_TABLE_TYPE4 mCpuSmbiosType4 parameter

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Signed-off-by: Yanming Zhu <zhuyanming@byosoft.com.cn>
---
 EmulatorPkg/CpuRuntimeDxe/Cpu.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/EmulatorPkg/CpuRuntimeDxe/Cpu.c b/EmulatorPkg/CpuRuntimeDxe/Cpu.c
index 00e93016af..8067ea7087 100644
--- a/EmulatorPkg/CpuRuntimeDxe/Cpu.c
+++ b/EmulatorPkg/CpuRuntimeDxe/Cpu.c
@@ -90,6 +90,19 @@ SMBIOS_TABLE_TYPE4 mCpuSmbiosType4 = {
       0, //  ProcessorReserved3 :1;
       0, //  ProcessorTm        :1;
       0, //  ProcessorReserved4 :2;
+    },
+    {
+       // PROCESSOR_CHARACTERISTIC_FLAGS
+      0, //  ProcessorReserved1             :1;
+      0, //  ProcessorUnknown               :1;
+      0, //  Processor64BitCapble           :1;
+      0, //  ProcessorMultiCore             :1;
+      0, //  ProcessorHardwareThread        :1;
+      0, //  ProcessorExecuteProtection     :1;
+      0, //  ProcessorEnhancedVirtulization :1;
+      0, //  ProcessorPowerPerformanceCtrl  :1;
+      0, //  Processor128bitCapble          :1;
+      0, //  ProcessorReserved2             :7;
     }
   },
   3,                    // ProcessorVersion String;
-- 
2.28.0.windows.1



           reply	other threads:[~2020-10-29  7:03 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <cover.1603954985.git.zhuyanming@byosoft.com.cn>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=91fee9b929654e7ecbc9388adc24642211f8b96b.1603954985.git.zhuyanming@byosoft.com.cn \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox