logo       

OSX 10.2.8 and G5: msg#00113

emulators.bochs.devel

Subject: OSX 10.2.8 and G5

I recently downloaded the Bochs-2.1.pre1 source release and to try out. The environment
I use is as follows:

Mac G5, 2 GHz, dual processor
GCC 3.3

The only configure option i added was --with-carbon so I could get the osx version.

My first compile did not work. When the make process got to line 2044 in main.cc it complained
about not having enough arguments passed to it. I checked it out and checked the man pages
and made the following change:

changed line 2044 in main.cc
from getcwd(cwd)
to getwd(cwd)

reason: getcwd requires two argument, the character array cwd, and
a return value for length of array

I ran make again and everything went fine. There were a few warnings but at this point I will ignore
them unless some problem comes up in running bochs.

I also set the show ips in config.h to 1 so I could get a measure of how fast things were running.
Well, all the available images booted up and appear to function. My acid test is to see how
win2000 works.

Started running the install for win2000. Never got passed the loading files part because it was taking
to long. I checked the ips number and saw it was around the neighborhood of 3.0 mips. MMMMM...
not real impressive. So I began playing with the options. Several builds later I ended up with the
following settings:

Following are the compiler flags that worked (i.e., bochs didn't bomb when run)

CFLAGS="-O3 -mcpu=G5 -mtune=G5 -finline-functions -falign-loops=16 -falign-jumps=16
-falign-functions=16 -falign-labels=16 -falign-loops-max-skip=15 -falign-jumps-max-skip=15
-fprefetch-loop-arrays -fmove-all-movables"
CXXFLAGS="-O3 -mcpu=G5 -mtune=G5 -finline-functions -falign-loops=16 -falign-jumps=16
-falign-functions=16 -falign-labels=16 -falign-loops-max-skip=15
-falign-jumps-max-skip=15 -fprefetch-loop-arrays -fmove-all-movables"

The following were the configure flags

./configure --prefix=/Users/woodman/projects/bochs-2.1.pre1/bochs_test --with-carbon
--enable-cpu-level=5 --enable-repeat-speedups --enable-host-specific-asms
--enable-icache --enable-guest2host-tlb --disable-mmx

The resulst of these settings during the win2000 install gave me a resulting mips around 12 to 13.
Pretty dramatic. (still haven't completely installed win2000).

I guess the next step is to start muxing with code. Any suggestions where to start looking looking
for the best speed gais to start? Any tools I can use to profile where bochs is spending most of
it's time?

Thanks!



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise