[Simh] VAX and disk device size oddness

Lennert Van Alboom lennert at vanalboom.org
Sat Feb 16 11:10:13 EST 2013


On Fri, Feb 15, 2013 at 08:29:42AM -0800, Mark Pizzolato - Info Comm wrote:
> > Well, I'm actually using raw disk devices mapped to SIMH. So instead of
> > ATTACH RQ1 /path/to/file, I have ATTACH RQ1 /dev/mapper/bla. But that
> > shouldn't make a difference - the vax process can write to it, and the RA90
> > "system" disk works fine.
> 
> This doesn't matter yet since you are encountering the issue before you
> attempt to attach.
> 
> Meanwhile, the latest code has the native ability to access raw devices which
> you may want to try once this size issue gets resolved.

This has always worked! :-) Or at least as long as I've been using SIMH, that
is... I believe I did raw device mapping to SIMH in 3.8 already. Worked just
fine - in lunix, everything is a file, after all...

> > The host is an Apple iBook G4, 1.2GHz PowerPC G4. The host OS is Debian
> > Linux ("testing" aka soon to be stable 7.0, 3.2.0 kernel).
> 
> > I checked the docs and they mentioned USE_INT64 and USE_ADDR64, but
> > those options were already passed to gcc by default.
> 
> As you discovered, No specific effort should be needed on your part.  The
> makefile should just work.

Yes, the makefile adds those flags already.

> > Just did this - running the "master" vax binary still gives "Invalid argument"
> > when using RAUSER with a size over 2047M.
> 
> I don't see how this can be happening.  The code at line 315 of sim_fio.c
> should enable > 2GB file support for any linux platform as long as the
> simulator is being built with USE_INT64 and USE_ADDR64.
> 
> Can you send the output from make produced while building the simulator.

Here you go:

	[alver at VAXtop simh-master]$ make vax
    lib paths are: /lib/ /lib/powerpc-linux-gnu/ /lib64/ /usr/lib/
    /usr/lib/powerpc-linux-gnu/
	using libm: /usr/lib/powerpc-linux-gnu//libm.so
	using librt: /usr/lib/powerpc-linux-gnu//librt.so
    using libpthread: /usr/lib/powerpc-linux-gnu//libpthread.so
    /usr/include/pthread.h
	using libdl: /usr/lib/powerpc-linux-gnu//libdl.so /usr/include/dlfcn.h
	using libpcap: /usr/include/pcap.h
	*** Warning ***
	*** Warning *** vax Simulator are being built with
	*** Warning *** minimal libpcap networking support
	*** Warning ***
	*** Warning *** Simulators on your Linux platform can also be built with
	*** Warning *** extended Ethernet networking support by using VDE Ethernet.
	*** Warning ***
	*** Warning *** To build simulator(s) with extended networking support you
	*** Warning *** should read 0readme_ethernet.txt and follow the instructions
	*** Warning *** regarding the needed libvdeplug components for your Linux
	*** Warning *** platform
	*** Warning ***
	***
	*** vax Simulator being built with:
	*** - compiler optimizations and no debugging support. GCC Version: 4.6.3.
	*** - dynamic networking support using Linux provided libpcap components.
	***
	gcc -std=c99 -U__STRICT_ANSI__  -O2 -finline-functions -fgcse-after-reload
	-fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations
	-fno-strict-overflow -flto -fwhole-program -Wno-unused-result  -I .
	-D_GNU_SOURCE -DUSE_READER_THREAD -DSIM_ASYNCH_IO  -DHAVE_DLOPEN=so
	VAX/vax_cpu.c VAX/vax_cpu1.c VAX/vax_fpa.c VAX/vax_io.c VAX/vax_cis.c
	VAX/vax_octa.c  VAX/vax_cmode.c VAX/vax_mmu.c VAX/vax_stddev.c VAX/vax_sysdev.c
	VAX/vax_sys.c  VAX/vax_syscm.c VAX/vax_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_xq.c PDP11/pdp11_vh.c PDP11/pdp11_cr.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 sim_disk.c sim_serial.c -DVM_VAX -DUSE_INT64
	-DUSE_ADDR64 -I VAX -I PDP11 -DUSE_SHARED -I/usr/include/ -DUSE_TAP_NETWORK -o
	BIN/microvax3900 -lm -lrt -lpthread -ldl   -flto -fwhole-program
    sim_disk.c: In function ‘ExpandToFullPath’:
    sim_disk.c:3239:1: warning: implicit declaration of function ‘getcwd’
    [-Wimplicit-function-declaration]
    sim_disk.c:3239:12: warning: initialization makes pointer from integer
    without a cast [enabled by default]
    cp BIN/microvax3900 BIN/vax


> We can take this offline until we resolve this issue.  I tried to contact
> your directly but you didn't seem to get my email.  Maybe if you send
> directly to me we'll open up a hole in the spam filtering...

Will do. Thanks!


Lennert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20130216/d7212e3e/attachment.sig>


More information about the Simh mailing list