[Simh] NetBSD related issues
Felix Deichmann
m4j0rd0m0 at gmail.com
Mon Apr 15 05:07:43 EDT 2013
Hi Mark,
I tried a current SimH again:
host# gmake vax
lib paths are: /usr/lib
using libm: /usr/lib/libm.so
using librt: /usr/lib/librt.so
using libpthread: /usr/lib/libpthread.so /usr/include/pthread.h
using libdl: /usr/include/dlfcn.h
using libpcap: /usr/include/pcap.h
***
*** vax Simulator being built with:
*** - compiler optimizations and no debugging support. GCC Version: 4.5.3.
*** - dynamic networking support using NetBSD provided libpcap components.
***
mkdir -p BIN
gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions
-fgcse-after-reload -fpredictive-commoning -fipa-cp-clone
-fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result
-I . -D_GNU_SOURCE -DUSE_READER_THREAD -DSIM_ASYNCH_IO
-DHAVE_DLOPEN=so sim_BuildROMs.c -o BIN/BuildROMs
BIN/BuildROMs
rm -f BIN/BuildROMs
mkdir -p BIN
gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions
-fgcse-after-reload -fpredictive-commoning -fipa-cp-clone
-fno-unsafe-loop-optimizations -fno-strict-overflow -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 -DUSE_BSDTUNTAP -o BIN/microvax3900
-lm -lrt -lpthread
cp BIN/microvax3900 BIN/vax
2013/4/12 Mark Pizzolato - Info Comm <Mark at infocomm.com>:
> 1) the one you're called out (Large File Support). This oversight was a longstanding bug for the NetBSD host platform. The code at github now should work for you. This issue was hard to find in older versions of simh. The latest simh codebase has enriched the SHOW VERSION output to display various details about the host and simulator which relate to various features.
Seems to be working now, as I can set, attach and use a 4 GiB image
successfully.
sim> show version
MicroVAX 3900 simulator V4.0-0 Beta
Simulator Framework Capabilities:
64b data
64b addresses
Ethernet support
Idle/Throttling support is available
Virtual Hard Disk (VHD) support
Asynchronous I/O support
Host Platform:
Compiler: GCC 4.5.3
Simulator Compiled: Apr 15 2013 at 08:08:43
Memory Access: Little Endian
Memory Pointer Size: 64 bits
Large File (>2GB) support
OS clock tick size: 3ms
OS: NetBSD host.blabla 6.0.1 NetBSD 6.0.1 (GENERIC) amd64
git commit id: 185f20a1
> 2) the 'ldconfig: not found'. This will affect other things which you may not have noticed yet. This issue is due to a recent change in NetBSD on x86 hosts which has converted from a.out to ELF binary/library formats. I haven't tested a build on a NetBSD host recently.
This warning is gone now.
Thanks! Using ASYNCH with SimH 4.0 also gives a noticeable improvement
in "responsiveness".
You do not mean NetBSD's "switch" to ELF, right? Calling this "recent"
is funny, as i386 switched to ELF even before I started using NetBSD
many years ago (I'm still young :)). The i386 port switched by the end
of the last millennium (I think with 1.5), and the amd64 port used ELF
from the very beginning, AFAIK.
:-)
Regards
Felix
More information about the Simh
mailing list