[Simh] SIMH large file support
Don North
ak6dn at mindspring.com
Sat Jan 2 23:51:59 EST 2016
On 1/2/2016 2:46 PM, Mark Pizzolato wrote:
> On Saturday, January 2, 2016 at 2:41 PM, Christian Gauger-Cosgrove wrote:
>
> Here's the "show version" output for completeness' sake:
> sim> show version
> PDP-11 simulator V4.0-0 Beta
> Simulator Framework Capabilities:
> 32b data
> 32b addresses
> Ethernet Packet transports:PCAP:NAT:UDP
> Idle/Throttling support is available
> Virtual Hard Disk (VHD) support
> RAW disk and CD/DVD ROM support
> Asynchronous I/O support
> FrontPanel API Version 1
> Host Platform:
> Compiler: Microsoft Visual C++ 15.00.30729.01
> Simulator Compiled: Dec 19 2015 at 12:51:02
> Memory Access: Little Endian
> Memory Pointer Size: 32 bits
> Large File (>2GB) support
> PCRE RegEx support for EXPECT commands
> OS clock resolution: 1ms
> Time taken by msleep(1): 1ms
> OS: Windows:
> Microsoft Windows [Version 6.1.7601]
> Intel64 Family 6 Model 58 Stepping 9, GenuineIntel - x86-AMD64
>
> git commit id: ca4a6901
I noticed in compiling SIMH on my Windows 7 64b system running 32b cygwin that
large file support
is not detected by SIMH configuration (altho CYGWIN does support the
fseeko/ftello routines with a 64b
offset value, as is required) in this environment.
I modified sim_fio.h andsim_fio.c to enable large file support detection for
CYGWIN as follows and recompiled
without issue. Running my 2.11BSD image .dsk files on the resultant PDP11
simulator works as expected.
simh-master[636] diff -b sim_fio.h*
44c44
< defined (_WIN32) || defined (__CYGWIN__) || defined (__APPLE__) || \
---
> defined (_WIN32) || defined (__APPLE__) || \
simh-master[637] diff -b sim_fio.c*
337c337
< #if defined (__APPLE__) || defined (__FreeBSD__) || defined(__NetBSD__) ||
defined (__OpenBSD__) || defined (__CYGWIN__)
---
> #if defined (__APPLE__) || defined (__FreeBSD__) || defined(__NetBSD__) ||
defined (__OpenBSD__)
Now says:
simh-master[638] pdp11
PDP-11 simulator V4.0-0 Beta git commit id: 59947e8c
sim> show version
PDP-11 simulator V4.0-0 Beta
Simulator Framework Capabilities:
32b data
32b addresses
Ethernet Packet transports:PCAP:NAT:UDP
Idle/Throttling support is available
Virtual Hard Disk (VHD) support
Asynchronous I/O support
FrontPanel API Version 1
Host Platform:
Compiler: GCC 4.9.3
Simulator Compiled: Jan 2 2016 at 20:03:43
Memory Access: Little Endian
Memory Pointer Size: 32 bits
Large File (>2GB) support <<========= used to say 'No large file support'
RegEx support for EXPECT commands
OS clock resolution: 1ms
Time taken by msleep(1): 1ms
OS: CYGWIN_NT-6.1-WOW lenovoS30w7 2.3.1(0.291/5/3) 2015-11-14
12:42 i686 Cygwin
git commit id: 59947e8c
Don
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20160102/674b2b24/attachment-0001.html>
More information about the Simh
mailing list