Commit graph

997 commits

Author SHA1 Message Date
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
Mark Pizzolato
049540aa20 Removed sim_console_old.c and sim_tmxr_old.c since the original files are available directly in the repository history. 2011-04-21 13:19:27 -07:00
Mark Pizzolato
d8e4a43f9a makefile: Cleaned up MinGw build and provided an option to build without Asynch I/O support using MinGw. 2011-04-20 15:18:37 -07:00
Mark Pizzolato
599c471eb4 ibm1130 - Compiler cleanup 2011-04-20 15:10:48 -07:00
Mark Pizzolato
2532ff4fac Remove ECLIPSE from the VAX build since it requires 64b and move the presumed location of PCAP-VMS up one directory level.
This is being done so that it is not entangled with the rest of
the simh sources and is at the same level presumed for the Windows
pcap components presumed in the Visual Studio Projects.

The PCAP-VMS components are presumed (by this procedure) to be located
in a directory at the same level as the directory containing the
simh source files.  For example, if these exist here:

  []descrip.mms
  []scp.c
  etc.

Then the following should exist:

  [-.PCAP-VMS]BUILD_ALL.COM
  [-.PCAP-VMS.PCAP-VCI]
  [-.PCAP-VMS.PCAPVCM]
  etc.
2011-04-20 12:44:01 -07:00
Mark Pizzolato
db99885bfe scp - Added expansion of %STATUS% and %TSTATUS% in do command
arguments.  STATUS is the numeric value of the last
        command error status and TSTATUS is the text message
        relating to the last command error status
2011-04-20 11:11:22 -07:00
Mark Pizzolato
7dfe732667 pdp11_xq Fixed save/restore behavior
Fixed missing information from save/restore which
caused operations to not complete correctly after
a restore until the OS reset the controller.
2011-04-20 06:06:33 -07:00
Mark Pizzolato
e3d3544f4d Changed sim_rest to defer attaching devices until after device register contents have been restored.
This is needed since an attach operation may behave differently depending on the state of other variables.
2011-04-19 16:28:59 -07:00
Mark Pizzolato
3e4185b1b1 pdp11_xq - Changed default to disable polling when Asynch I/O is available 2011-04-19 16:20:24 -07:00
Mark Pizzolato
d81365b7af Compile cleanups.
i1620_sys.c - fixed printf calls without a format argument.
ibm1130_cr.c - fixed printf calls without a format argument.
scp.c - corrected argument types
vax780_sbi.c - corrected argument types
vax_sysdev.c - corrected argument types
pdp11_tu.c - Fixed t_addr printouts for 64b big-endian systems
sim_console.c - fixed formats to consistently print file names
2011-04-19 16:18:26 -07:00
Mark Pizzolato
d8f55a652b Cleaned up filename cases to be consistent for cross platform builds 2011-04-19 16:02:45 -07:00
Mark Pizzolato
5da9566b43 Fixed missing void declaration 2011-04-18 16:23:23 -07:00
Mark Pizzolato
77ce0c7ceb Idle enabled state should persist across a save/restore 2011-04-18 16:08:41 -07:00
Mark Pizzolato
b577841d03 Fixed bug with self loopback packets in multithreaded environments 2011-04-18 16:07:23 -07:00
Mark Pizzolato
bafbba4df8 Fixed bug with shared log file references 2011-04-18 16:06:19 -07:00
Mark Pizzolato
94ad4e303f Cleaned up to support running in a background/detached process 2011-04-17 15:29:35 -07:00
Mark Pizzolato
2247e52be1 Enriched .gitignore to avoid testing/working files 2011-04-17 15:28:46 -07:00
Mark Pizzolato
fe8b1f06de Merge branch 'FastAsynchIO' into simhv38-2-rc2
Conflicts:
	PDP11/pdp11_tq.c
	PDP11/pdp11_ts.c
	PDP11/pdp11_xq.h
	VAX/vax780_sbi.c
	VAX/vax_cpu.c
	makefile
	scp.c
	sim_defs.h
	sim_ether.c
	sim_timer.c
2011-04-15 10:47:35 -07:00