Commit graph

2614 commits

Author SHA1 Message Date
Mark Pizzolato
158a02df5a Removed unused utility routine which doesn't compile on some platforms 2011-11-02 08:45:21 -07:00
Mark Pizzolato
02c5302039 cleaned up Solaris build issues 2011-11-02 08:32:24 -07:00
Mark Pizzolato
cbc14bc010 Fix memory leak on error path and proper polling vs async conditions 2011-11-02 05:45:01 -07:00
Mark Pizzolato
fd5de0d005 Added support for VDE (Virtual Distributed Ethernet) network packet transport
Fixed filtering for non-pcap network packet transports (i.e. tun/tap, and vde) to properly filter the desired packets.
2011-10-31 11:56:44 -07:00
Mark Pizzolato
bfb6e54819 Compiler warning cleanup 2011-10-31 10:26:58 -07:00
Mark Pizzolato
4167c4cab9 Cleanup comments 2011-10-31 10:25:52 -07:00
Mark Pizzolato
f84c6109de Added useful diagnostic when restore operation fails due to inability to attach a device 2011-10-31 10:25:11 -07:00
Mark Pizzolato
a8a5a5b74f Fixed error path to properly close file 2011-10-31 10:24:30 -07:00
Mark Pizzolato
eaddb7d24a Added support for integrated Tap networking interfaces on OSX 2011-10-29 14:13:33 -07:00
Mark Pizzolato
ec4f002531 Standardized the simulatar transition messages which is needed on hosts with raw console tty I/O (From the OSX community) 2011-10-28 10:06:12 -07:00
Mark Pizzolato
0c4b62fe82 Remove compiler warnings if built with DONT_USE_PCAP_FINDALLDEVS 2011-10-28 10:04:21 -07:00
Mark Pizzolato
2df727b701 adds link to pdp8_fpp.c 2011-10-26 13:48:15 -07:00
Mark Pizzolato
852293e046 many bug fixes (all from Rick Murphy); now functional 2011-10-26 13:47:40 -07:00
Mark Pizzolato
445cb1710d Fixed SDLC to clear AC (from Dave Gesswein) 2011-10-26 13:46:21 -07:00
Mark Pizzolato
c38eacd0c8 Fixed throttling in several ways:
- Sleep for the observed clock tick size while throttling
                        - Recompute the throttling wait once every 10 seconds
                          to account for varying instruction mixes during
                          different phases of a simulator execution or to
                          accommodate the presence of other load on the host
                          system.
                        - Each of the pre-existing throttling modes (Kcps,
                          Mcps, and %) all compute the appropriate throttling
                          interval dynamically.  These dynamic computations
                          assume that 100% of the host CPU is dedicated to
                          the current simulator during this computation.
                          This assumption may not always be true and under
                          certain conditions may never provide a way to
                          correctly determine the appropriate throttling
                          wait.  An additional throttling mode has been added
                          which allows the simulator operator to explicitly
                          state the desired throttling wait parameters.
                          These are specified by:
                                 SET THROT insts/delay
                          where 'insts' is the number of instructions to
                          execute before sleeping for 'delay' milliseconds.
2011-10-25 03:52:24 -07:00
Mark Pizzolato
9f1f586714 Compiler cleanup 2011-10-21 02:07:36 -07:00
Mark Pizzolato
7075a3ec5c Added support for concurrent sharing of raw disk images/drives between simulators 2011-10-20 11:30:44 -07:00
Mark Pizzolato
51525f7a3f Fixed builds on x64 *nix platforms to properly detect the availability of libm 2011-10-12 15:39:06 -07:00
Mark Pizzolato
329d84ea0c Fixed Missing SIM_ASYNCH_IO option in VAX780 Debug build 2011-09-29 06:35:26 -07:00
Mark Pizzolato
7f9a612e96 Merge branch 'VAX-TODR' 2011-09-29 06:32:58 -07:00
Mark Pizzolato
5687f9227b VAX & VAX780 Generalized setting TODR for all OSes.
Unbound the TODR value from the 100hz clock tick interrupt.  TODR now behaves like the original battery backed-up clock and runs with the wall clock, not the simulated instruction clock (except when running ROM diagnostics).

Two operational modes are available:
    - Default VMS mode, which is similar to the previous
      behavior in that without initializing the TODR it
      would default to the value VMS would set it to if
      VMS knew the correct time.  This would be correct
      almost all the time unless a VMS disk hadn't been
      booted from for more than a year.  This mode
      produces strange time results for non VMS OSes on
      each system boot.
    - OS Agnostic mode.  This mode behaves precisely like
      the VAX780 TODR and works correctly for all OSes.
      This mode is enabled by attaching the TODR to a
      battery backup state file for the TOY clock
      (i.e. sim> attach TODR TOY_CLOCK).  When operating
      in OS Agnostic mode, the TODR will initially start
      counting from 0 and be adjusted differently when an
      OS specifically writes to the TODR.  VMS will prompt
      to set the time on the initial boot unless the SYSGEN
      parameter TIMEPROMPTWAIT is set to 0.
2011-09-29 06:18:49 -07:00
Mark Pizzolato
eef35bd1dc Added a console log flush when starting a simulator and potentially waiting for a telnet connection 2011-09-27 07:22:25 -07:00
Mark Pizzolato
3ae8a42dae Allowed SET CONSOLE TELNET=nnn to be issued multiple times, with an automatic SET CONSOLE NOTELNET done as needed. 2011-09-26 11:49:43 -07:00
Mark Pizzolato
2753c4a3dc Fixed DO command to properly return and display status from nested invocations. 2011-09-26 11:09:08 -07:00
Mark Pizzolato
034e749fce Added SET ASYNCH and SET NOASYNCH commands to dynamically enable or disable Asynchronous I/O support 2011-09-25 08:16:40 -07:00
Mark Pizzolato
6e098021c2 Documented current state of sim_ether, etc. and included references for new OpenVMS Integrety (IA64) support. 2011-09-25 08:14:58 -07:00
Mark Pizzolato
0705a6b468 Fixed typo in VAX730 build 2011-09-24 06:26:25 -07:00
Mark Pizzolato
e410733781 fixed makefile to correctly use readline on x64 Linux builds which have libreadline available 2011-09-23 16:26:00 -07:00
Mark Pizzolato
a6b8d63f10 Merge of VAX 11/730 Simulator from Matt Burke 2011-09-23 16:21:03 -07:00
Mark Pizzolato
cb35f6c97b Added support for embedded ROM images in simulators.
This allows a single simulator executable to be a completely useful component (for those simulators which dynamically load ROM or other boot code).
Meanwhile, we continues to allow the explicit use of a user's preferred ROM or other boot code as well.
A build option is provided in the makefile to not build with the included ROM functionality if desired.
2011-09-23 13:28:38 -07:00
Mark Pizzolato
312bc9a967 Added signal catching of SIGHUP and SIGTERM to cause simulator STOP. This will facilitate running a simulator as a 'service' on *nix platforms, given a sufficiently flexible simulator .ini file. 2011-09-22 14:43:42 -07:00
Mark Pizzolato
e70278eabf VAX: Fixed idle conditions for various versions of Ultrix, Quasijarus-4.3BSD, NetBSD and OpenBSD.
Note: Since NetBSD and OpenBSD are still actively developed operating systems, new versions of
these OSes are moving targets with regard to providing idle detection.  At this time, recent versions
of OpenBSD have veered from the traditional OS idle approach taken in the other BSD derived OSes.
Determining a reasonable idle detection pattern does not seem possible for these versions.
2011-09-21 07:13:35 -07:00
Mark Pizzolato
a280dd2b1f Added Readline build support on more *nix platforms 2011-09-19 17:08:35 -07:00
Mark Pizzolato
5151c341a4 Fixed *nix build support on x64 platforms 2011-09-19 16:38:58 -07:00
Mark Pizzolato
49597cc0d3 Added makefile build support for detecting libpthreads on x64 *nix platforms. 2011-09-19 16:33:14 -07:00
Mark Pizzolato
f1b638749f Added display of the measured sleep resolution to sim_show_idle and a call to sim_show_idle from the VAX cpu_show_idle routine. 2011-09-19 14:49:45 -07:00
Mark Pizzolato
b36370413f Merge branch 'master' of github.com:markpizz/simh 2011-09-14 08:51:09 -07:00
Mark Pizzolato
573f7bce0b Minor compile message cleanup 2011-09-14 08:47:59 -07:00
Mark Pizzolato
706e07a746 Fixed from Sergey Oboguev relating to XU and XQ Auto Config issues with vector assignments. 2011-08-17 16:36:02 -07:00
Mark Pizzolato
3a61487a2d Cleaned up payload length determination. 2011-08-13 10:29:44 -07:00
Mark Pizzolato
015f2bb82e Fixed race condition detecting reflections when threaded reading and writing is enabled.
Fixed handling of Jumbo Packets and LSO (Large Send Offload) behaviorst to:
1) Avoid truncation of very large sends
2) handle the case where the host network stack may not populate the IP header length for a large send.
2011-08-12 17:53:32 -07:00
Mark Pizzolato
724cdfcfb1 Fixed DESCRIP.MMS for clean building on IA64 platforms. 2011-06-12 16:23:01 -07:00
Mark Pizzolato
9e220f1138 Cleaned up VMS builds using various versions of the Dec/Compaq/HP C compilers 2011-06-04 04:29:00 -07:00
Mark Pizzolato
89a27e0816 pdp11_vh.c: - Added debugging support to trace register, interrupt
and data traffic (SET VH DEBUG[=REG;INT;XMT;RCV])
                 -  Added SET LOG and SET NOLOG support for logging mux
                    traffic
                 -  Fixed SET VH LINES=n to correctly adjust the number
                    of lines available to be 8, 16, 24, or 32.
                 -  Fixed performance issue avoiding redundant polling in unit
                    service routine (removed 75% of polling overhead)

pdp11_dz.c:      -  Added debugging support to trace register, interrupt
                    and data traffic (SET VH DEBUG[=REG;INT;XMT;RCV])
2011-06-03 09:27:27 -07:00
Mark Pizzolato
338ad5147b Extend help text for SET CONSOLE to describe all of the settable console options 2011-06-03 09:25:49 -07:00
Mark Pizzolato
b3cb2791a5 Added telnet Option Negotiation Debugging support
Fixed telnet option negotiation loop with some telnet clients (Binary Mode).
2011-06-02 08:57:20 -07:00
Mark Pizzolato
d32b3a0f6d Added idle support when sitting at the >>> prompt in the console ROM 2011-06-02 08:37:17 -07:00
Mark Pizzolato
31bf337ded Fix sim_debug to display actual instruction count. 2011-06-01 09:23:14 -07:00
Mark Pizzolato
14a88e4fd4 Make sure that VAX/vmb.exe is included in the git repository 2011-06-01 09:10:13 -07:00
Mark Pizzolato
f7b53a5fe9 Fixed sim_idle to account for a reasonable number of cycles which have passed when an asynchrnous event terminated the idle wait.
Also corrected the text of a printf which described the units of the asynch latency variable as nano seconds instead of microseconds.
2011-04-22 05:47:26 -07:00