Getting bochs to show 32 instead of 64-bit on an x86_64 host

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
OriginalCopy
Posts: 1
Joined: Thu Feb 24, 2011 3:36 pm

Getting bochs to show 32 instead of 64-bit on an x86_64 host

Post by OriginalCopy »

Hi, I am new in the osdev world, but I think I wouldn't consider myself satisfied if I don't learn this one too.

I've written the simple "genesis" kernel from here, it works.

My host is an x86_64 box, but the kernel is supposed to be 32-bit. How can I get the bochs debugger to actually show me x86-specific code (e.g. EAX instead of RAX)?

Bochs has been configured like this:

Code: Select all

  ./configure --prefix=/usr --enable-vbe --without-wx --enable-cpu-level=6 \
              --enable-fpu \
                --enable-plugins --enable-x86-64 --enable-smp \
                --enable-long-phy-address --enable-debugger --enable-disasm --enable-debugger-gui \
                --enable-raw-serial --enable-vmx --enable-x86-debugger --enable-iodebug
Thanks
Tosi
Member
Member
Posts: 255
Joined: Tue Jun 15, 2010 9:27 am
Location: Flyover State, United States
Contact:

Re: Getting bochs to show 32 instead of 64-bit on an x86_64

Post by Tosi »

Compile Bochs without x86_64 support, or modify the internal debugger yourself to emit the correct mnemonics for the current operating mode.
Post Reply