Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/55810 )

Change subject: arch-x86: Detect when entering virtual 8086 mode.
......................................................................

arch-x86: Detect when entering virtual 8086 mode.

If we're entering virtual 8086 mode, panic. Some aspects of that mode
may actually work, but since it's essentially untested, lets be extra
cautious.

Change-Id: I78bbfcb75db8370f4271c75caabc0ec53f75a884
---
M src/arch/x86/isa.cc
1 file changed, 19 insertions(+), 0 deletions(-)



diff --git a/src/arch/x86/isa.cc b/src/arch/x86/isa.cc
index 89e0d29..2d7c4df 100644
--- a/src/arch/x86/isa.cc
+++ b/src/arch/x86/isa.cc
@@ -314,6 +314,12 @@
         break;
       case MISCREG_CR8:
         break;
+      case MISCREG_RFLAGS:
+        {
+            RFLAGS rflags = val;
+            panic_if(rflags.vm, "Virtual 8086 mode is not supported.");
+            break;
+        }
       case MISCREG_CS_ATTR:
         {
             SegAttr toggled = regVal[miscReg] ^ val;

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/55810
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I78bbfcb75db8370f4271c75caabc0ec53f75a884
Gerrit-Change-Number: 55810
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to