Commit a094a81a authored by Russ Ross's avatar Russ Ross Committed by Ben Pfaff
Browse files

Fix boot under Bochs when Pintos is compiled with recent GCC.

When compiled according to the instructions, bochs fails to load
the project 1 kernel.  This seems to be due to the latest gcc using an
instruction that bochs is not compiled to support.  Adding the
'--enable-cpu-level=6' configure option to Bochs, as this commit does,
seems to work.
parent 2d5d792b
...@@ -26,7 +26,7 @@ cat $PINTOSDIR/src/misc/bochs-2.2.6-namespace.patch | patch -p1 ...@@ -26,7 +26,7 @@ cat $PINTOSDIR/src/misc/bochs-2.2.6-namespace.patch | patch -p1
if test "`uname -s`" = "SunOS"; then if test "`uname -s`" = "SunOS"; then
cat $PINTOSDIR/src/misc/bochs-2.2.6-solaris-link.patch | patch -p1 cat $PINTOSDIR/src/misc/bochs-2.2.6-solaris-link.patch | patch -p1
fi fi
CFGOPTS="--with-x --with-x11 --with-term --with-nogui --prefix=$DSTDIR" CFGOPTS="--with-x --with-x11 --with-term --with-nogui --prefix=$DSTDIR --enable-cpu-level=6"
mkdir plain && mkdir plain &&
cd plain && cd plain &&
../configure $CFGOPTS --enable-gdb-stub && ../configure $CFGOPTS --enable-gdb-stub &&
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment