Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/38536 )
Change subject: x86: Change some CR0 settings when setting up kvm x86
processes.
......................................................................
x86: Change some CR0 settings when setting up kvm x86 processes.
These values were (seemingly) arbitrarily changed from the original,
non-KVM settings, and no longer matched the comments which were also
copied over. These two bits enable alignment checking on memory accesses
(not normally used on x86), and whether kernel code can write to read
only pages.
Change-Id: I48e560e448e4849607f12e9336d1ab0458ad9407
---
M src/arch/x86/process.cc
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc
index e9cdb61..25f556c 100644
--- a/src/arch/x86/process.cc
+++ b/src/arch/x86/process.cc
@@ -352,8 +352,8 @@
cr0.pg = 1; // Turn on paging.
cr0.cd = 0; // Don't disable caching.
cr0.nw = 0; // This is bit is defined to be ignored.
- cr0.am = 1; // No alignment checking
- cr0.wp = 1; // Supervisor mode can write read only pages
+ cr0.am = 0; // No alignment checking
+ cr0.wp = 0; // Supervisor mode can write read only pages
cr0.ne = 1;
cr0.et = 1; // This should always be 1
cr0.ts = 0; // We don't do task switching, so causing fp
exceptions
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/38536
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: I48e560e448e4849607f12e9336d1ab0458ad9407
Gerrit-Change-Number: 38536
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