[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bochs-dev
Subject:    Re: [Bochs-developers] Problem compiling Bochs for 486 CPU because
From:       "Stanislav" <stlintel () gmail ! com>
Date:       2009-10-02 14:38:18
Message-ID: 00e201ca436d$fde8a920$f9b9fb60$ () com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


This was a bug in 2.4.1 release, just download latest CVS snapshot.

 

Stanislav

 

From: Kelly Carter [mailto:kcarter@ssai.org] 
Sent: Friday, October 02, 2009 3:52 PM
To: bochs-developers@lists.sourceforge.net
Subject: [Bochs-developers] Problem compiling Bochs for 486 CPU because of
PAE option

 

I'm new to the Bochs developer community. Here is my first question.

 

I'm attempting to recompile Bochs to emulate a 486 CPU. Compilation is
failing due to something related to Physical Address Extensions (PAE):

 

In file paging.cc, this conditional expression is being skipped over:

 

#if BX_SUPPORT_PAE

bx_bool BX_CPP_AttrRegparmN(1) BX_CPU_C::CheckPDPTR(Bit32u cr3_val)

 

.because I have set configuration option  --enable-pae=no (since that's
required for my CPU level = 4).

 

So, CheckPDPTR is not defined when the compiler hits proc_ctl.cc:

 

if (BX_CPU_THIS_PTR cr0.get_PG() && BX_CPU_THIS_PTR cr4.get_PAE() &&
!long_mode()) {

if (! CheckPDPTR(val_32)) {

BX_ERROR(("SetCR3(): PDPTR check failed !"));

exception(BX_GP_EXCEPTION, 0, 0);

}

}

 

If I try setting --enable-pae=yes, compilation fails because my CPU is set
to 4.

 

I am brand new to Bochs and don't know the source code yet, and there aren't
many comments in the code to guide me. Does anyone on this list have any
insight or suggestions for the problem I've described? Thanks in advance.

 

Kelly Carter

Support Systems Associates, Inc.; 800 Park Drive; Warner Robins, GA 31088

kcarter@ssai.org; 478.328.8377 x.233

 

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers.

 


[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"Lucida Console";
	panose-1:2 11 6 9 4 5 4 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>This was a bug in 2.4.1 release,
just download latest CVS snapshot.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Stanislav<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Kelly Carter \
[mailto:kcarter@ssai.org] <br> <b>Sent:</b> Friday, October 02, 2009 3:52 PM<br>
<b>To:</b> bochs-developers@lists.sourceforge.net<br>
<b>Subject:</b> [Bochs-developers] Problem compiling Bochs for 486 CPU because
of PAE option<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I&#8217;m new to the Bochs developer community. Here is my first
question&#8230;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I&#8217;m attempting to recompile Bochs to emulate a 486 CPU.
Compilation is failing due to something related to <b>Physical Address
Extensions (PAE)</b>:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>In file <b>paging.cc</b>, this conditional expression is
being skipped over:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Lucida \
Console"'>#if <b>BX_SUPPORT_PAE</b><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Lucida \
Console"'>bx_bool BX_CPP_AttrRegparmN(1) BX_CPU_C::<b>CheckPDPTR</b>(Bit32u \
cr3_val)</span><o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>&#8230;because I have set configuration option \
&nbsp;<b>--enable-pae=no</b> (since that&#8217;s required for my CPU level = \
4).<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>So, <b>CheckPDPTR</b> is not defined when the compiler hits \
<b>proc_ctl.cc</b>:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Lucida \
Console"'>if (BX_CPU_THIS_PTR cr0.get_PG() &amp;&amp; BX_CPU_THIS_PTR cr4.get_PAE()
&amp;&amp; !long_mode()) {<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'><span
style='font-family:"Lucida Console"'>if (! <b>CheckPDPTR</b>(val_32)) \
{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:1.0in;text-indent:.5in'><span
style='font-family:"Lucida Console"'>BX_ERROR((&quot;SetCR3(): PDPTR check
failed !&quot;));<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:1.0in;text-indent:.5in'><span
style='font-family:"Lucida Console"'>exception(BX_GP_EXCEPTION, 0, \
0);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'><span
style='font-family:"Lucida Console"'>}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Lucida \
Console"'>}<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>If I try setting <b>--enable-pae=yes</b>, compilation fails
because my CPU is set to 4.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I am brand new to Bochs and don&#8217;t know the source code yet,
and there aren&#8217;t many comments in the code to guide me. Does anyone on this
list have any insight or suggestions for the problem I&#8217;ve described? Thanks in
advance.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><b><span \
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Kelly \
Carter<o:p></o:p></span></b></p>

<p class=MsoNormal><span \
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Support Systems Associates, \
Inc.; 800 Park Drive; Warner Robins, GA 31088<o:p></o:p></span></p>

<p class=MsoNormal><span \
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>kcarter@ssai.org; \
478.328.8377 x.233<o:p></o:p></span></p>

<p class=MsoNormal><span \
style='font-size:8.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>The
information transmitted is intended only for the person or entity to which it
is addressed and may contain confidential, proprietary, and/or privileged
material. Any review, retransmission, dissemination or other use of, or taking
of any action in reliance upon, this information by persons or entities other
than the intended recipient is prohibited. If you received this in error,
please contact the sender and delete the material from all computers.</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf

_______________________________________________
bochs-developers mailing list
bochs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-developers


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic