[Simh] weird issue with the 11/780

Jason Stevens neozeed at gmail.com
Sun Jun 14 11:26:28 EDT 2009


I've actually never used the SIMH cpu debugging so I'm kind of lost.
The bottom line is that the 4.3 BSD bootloading method I use on
Windows/MS-DOS breaks under LINUX.  I don't know if it breaks under
any other UNIX's other then I can say the SUA (the UNIX subsystem for
Windows) runs the exe's ok.

Here is the output from a PPC (a sony PS3 running Linux)

--------8<--------8<--------8<--------8<--------8<--------8<--------8<
[root at jasonps3 BIN]# uname -a
Linux jasonps3.stevens.net 2.6.23-9.ydl6.1 #1 SMP Sat Jan 26 20:16:15
EST 2008 ppc64 ppc64 ppc64 GNU/Linux

[root at jasonps3 BIN]# ./vax780.exe uwisc.ini

VAX780 simulator V3.8-1
uwisc.ini> set cpu idle
Command not allowed
loading hp(0,0)boot

Boot
: hp(0,0)vmunix
290104+89584+102928 start 0x12f8

Process PTE in P0 or P1 space, PC: 8002E093 (XORW3
@-7035(R8), at D0FF8C9A, at -70B0(R1))
sim>
--------8<--------8<--------8<--------8<--------8<--------8<--------8<


Likewise on an intel box:


--------8<--------8<--------8<--------8<--------8<--------8<--------8<
linuxcompile:/usr/src/simh# uname -a
Linux linuxcompile 2.6.24-2-pve #1 SMP PREEMPT Wed Jan 14 11:32:49 CET
2009 i686 GNU/Linux

linuxcompile:/usr/src/simh# ./vax780 vax780.ini

VAX780 simulator V3.7-3
vax780.ini> set cpu idle
Command not allowed
vax780.ini> att xu slirp
Command not allowed
loading hp(0,0)boot

Boot
: hp(0,0)vmunix
290104+89584+102928 start 0x12f8

Process PTE in P0 or P1 space, PC: 8002E093 (XORW3
@-7035(R8), at D0FF8C9A, at -70B0(R1))
sim> q
Goodbye

--------8<--------8<--------8<--------8<--------8<--------8<--------8<
I've tried 3.7-3, 3.8-0 & 3.8-1 and they all consistantly fail at the
same location.


The weird thing is that it 'just works' on Windows...

Is there a good way to set breakpoints, dump the stack/cpu state?  I
know it'll be a good RTFM manaul thing
but it's just perplexing to me that LINUX breaks and Windows works...
Maybe windows ignores the exception?


Just to verify I'm building this right...

--------8<--------8<--------8<--------8<--------8<--------8<--------8<
 linuxcompile:/usr/src/simh/simh38-1# unzip -a ../../simhv38-1.zip
...
...
  inflating: VAX/vmb.exe             [binary]
linuxcompile:/usr/src/simh/simh38-1# mkdir BIN
linuxcompile:/usr/src/simh/simh38-1# make BIN/vax780
gcc -std=c99 -U__STRICT_ANSI__ -g -lrt -lm -D_GNU_SOURCE -I .
VAX/vax_cpu.c VAX/vax_cpu1.c VAX/vax_fpa.c VAX/vax_cis.c
VAX/vax_octa.c  VAX/vax_cmode.c VAX/vax_mmu.c VAX/vax_sys.c
VAX/vax_syscm.c VAX/vax780_stddev.c VAX/vax780_sbi.c VAX/vax780_mem.c
VAX/vax780_uba.c VAX/vax780_mba.c VAX/vax780_fload.c
VAX/vax780_syslist.c PDP11/pdp11_rl.c PDP11/pdp11_rq.c
PDP11/pdp11_ts.c PDP11/pdp11_dz.c PDP11/pdp11_lp.c PDP11/pdp11_tq.c
PDP11/pdp11_xu.c PDP11/pdp11_ry.c PDP11/pdp11_cr.c PDP11/pdp11_rp.c
PDP11/pdp11_tu.c PDP11/pdp11_hk.c PDP11/pdp11_io_lib.c scp.c
sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c
sim_tape.c -DVM_VAX -DVAX_780 -DUSE_INT64 -DUSE_ADDR64 -I VAX -I PDP11
 -o BIN/vax780
linuxcompile:/usr/src/simh/simh38-1# cd ..
linuxcompile:/usr/src/simh# ./simh38-1/BIN/vax780 vax780.ini

VAX780 simulator V3.8-1
vax780.ini> att xu slirp
Command not allowed
loading hp(0,0)boot

Boot
: hp(0,0)vmunix
290104+89584+102928 start 0x12f8

Process PTE in P0 or P1 space, PC: 8002E093 (XORW3
@-7035(R8), at D0FF8C9A, at -70B0(R1))
sim> q
Goodbye
linuxcompile:/usr/src/simh#
--------8<--------8<--------8<--------8<--------8<--------8<--------8<

Any pointers much appreciated!

Jason



More information about the Simh mailing list