Re: Simulator for x486



On May 20, 12:03 pm, "Helge Kruse" <spamt...@xxxxxxxxxx> wrote:
"Ben Peddell" <spamt...@xxxxxxxxxx> wrote in messagenews:g0ucsj$1fa0$1@xxxxxxxxxxxxxxxxxxxxxxx
I am working at a boot loader for a x486 CPU. The CPU starts from Flash in 8086 real mode initializes the GDT, jumps to protected
mode and sets up the chip set, DRAM controller etc.

Is there any simulator where I can single step the opcodes out of the flash rom image? Host operating system ist Windows XP,
Linux would be possible but harder to set up.

BOCHS <bochs.sourceforge.net>

Ben, thanks for reply. I found in chapter four of the Bochs manual

These are the minimum requirements for running an OS inside of Bochs:

a.. the Bochs executable

b.. the BIOS image (usually called BIOS-bochs-latest)

c.. the VGA BIOS image (e.g. VGABIOS-lgpl-latest or VGABIOS-elpin-2.40)

d.. at least one bootable media, either as disk image (floppy, hard disk or CD-ROM) or physical disk (floppy or CD-ROM)

Unfortunately I only have some bytes that should be fetched from the flash device. Are you sure you can convince Bochs to skip the
VGA and the boot media? Can you give a hint?

You have Bochs' source code. Also the BIOS comes as a separate binary
file. Either by changing the source or the BIOS (to that of yours) or
both you should be able to use Bochs as a CPU emulator only (provided
you keep the interrupts disabled). Think about it, the BIOS is the
first thing the CPU starts to execute. Where does that happen? The
80486 CPU has a hard-coded address at which it starts code execution
after reset. That is at 0F000H:0FFF0H (CS:IP) or 0FFFF0H physical. It
should be the same address in your system.

Alex

.



Relevant Pages

  • Re: SuSE 9.1 powersaved vs acpi
    ... >> tables in the BIOS to do CPU throttling. ... >> disk suspends. ... >> proxy server) the CPU fan never switches on. ... >> What I suggest is that you use ACPI if it is 100% supported by your BIOS. ...
    (alt.os.linux.suse)
  • Re: Reading the ROM BIOS
    ... > configure Bochs to use your BIOS file and finally attempt to boot an OS ... I need to enter a command line to run bochs on my bios file biosdump. ...
    (comp.os.linux.misc)
  • Re: PC boot block programming madness
    ... BootSignature DW 0xAA55; boot signature, to make BIOS detect my disk ... VMWare and real world computers won't output any visible text. ... Bochs outputs the text just as I would expect it to be ...
    (comp.lang.asm.x86)
  • bochs and Win2000
    ... I have been playing with bochs since I saw it mentioned here. ... When I would tell the install to ... When I try to reboot to disk after running the CD portion of the setup, ... Do you like to spend all of your free time pissing into the ...
    (alt.os.linux.suse)
  • Re: Reading the ROM BIOS
    ... this is separate from "debugger support", ... hardware breakpoints inside the simulation). ... configure Bochs to use your BIOS file and finally attempt to boot an OS ...
    (comp.os.linux.misc)