Commit graph

3306 commits

Author SHA1 Message Date
Mark Pizzolato
e083a93ea2 FRONTPANEL: Add format buffer bounds checking 2017-12-10 20:04:11 -08:00
Seth Morabito
06e7851d83 3b2: Fix overflow of mask bits in INSFW/EXTFW
- An overflow bug was causing INSFW and EXTFW to fail
  on Windows hosts compiled with Microsoft Visual Studio.
  This commit fixes the issue and causes 3B2 diagnostics
  to pass under win32.
2017-12-10 12:01:08 -08:00
Mark Pizzolato
2292f2cf3e FRONTPANEL: sim_frontpanel API release 8
- Add sim_panel_debug() API to allow the front panel application to write
  directly to the API's debug file.
- Made transitions to panel Error state properly done with the mutex
   properly serializing accesss to the panel State variable.
2017-12-10 04:14:36 -08:00
Seth Morabito
d5f8a84493 3b2: Initial CONTTY support 2017-12-09 21:30:25 -08:00
Mark Pizzolato
7cd1b27b08 BESM6: Fix error message generation to use sim_error_text
As reported in #500
2017-12-09 20:54:10 -08:00
Mark Pizzolato
1d360efe15 ibm1130: Fix build on FreeBSD as discussed in #499 2017-12-09 17:16:35 -08:00
Mark Pizzolato
6487d319cd VMS Build: Restore VAX/VMS host build support
The C RTL on the latest VAX/VMS does not provide a snprintf function.
We provide a 'basic' one which meets the needs of simh as suggested
by Jordi Guillaumes Pons.
2017-12-09 11:21:38 -08:00
Mark Pizzolato
9b1f44f787 SCP: Remove optional write_callback in the REGister structure
The REG structure exists to serve SCP's various activities.  It is
does not exist to provide capabilities to a VM.
2017-12-09 02:54:10 -08:00
Mark Pizzolato
b4c3fa1656 FRONTPANEL: sim_frontpanel API release 7
- Add explicit support for referencing register array elements.
- Reworked the parsing of the grouped output sets for explicitly queried
   registers and the auto repeat output sets.
- Fix race conditions in the various RUN, START, BOOT, and CONT commands.
- Fix incorrect RUN/HALT state after STEP commands
- Tolerate input TCP traffic that has been legitimately coalesced into
   different
2017-12-09 01:25:34 -08:00
Mark Pizzolato
0e4ee6ecce FRONTPANEL: Add support to collect bit samples on register array members 2017-12-07 22:11:43 -08:00
Mark Pizzolato
c223f0fcec FRONTPANEL: Properly digest session traffic which TCP may have coalesced. 2017-12-06 10:46:18 -08:00
Mark Pizzolato
e2cccb78d1 FRONTPANEL: Improve validation of register existence
Initialize register bit data with current registers are added with bit
summary data specified.
2017-12-06 10:38:18 -08:00
Mark Pizzolato
b681f0d850 FRONTPANEL: Add a debug output flushing thread
This facilitates gathering useful debug information if/when execution
seems to hangs.
2017-12-06 10:30:33 -08:00
Mark Pizzolato
a4a6a1d409 SCP: Fix regression which disabled limit check when parsing unsigned integers
This affected unit and tmxr line checks when there was only one unit or line.
2017-12-05 12:23:31 -08:00
Mark Pizzolato
133cf727d5 SCP: Move test for unit disabled to also cover devices with attach routines 2017-12-05 12:17:23 -08:00
Mark Pizzolato
f1f8c8550b makefile: clarified the make command goals which build the BESM6 simulator 2017-12-02 21:17:34 -08:00
Richard Cornwell
4ecb739cf6 SIM_CARD: Update to support IBM360 codes. 2017-12-02 21:05:13 -05:00
Richard Cornwell
3f27200f88 B5500: Cleanup some coverity errors. 2017-12-02 21:04:44 -05:00
Mark Pizzolato
0da9a49c66 slirp: Avoid warnings when compiling with both new and older versions of clang 2017-12-02 15:56:48 -08:00
Mark Pizzolato
b080aa7a2f slirp: Avoid compiler warnings about address of packet members 2017-12-02 15:50:24 -08:00
Mark Pizzolato
afc5580db8 makefile: Fix besm6 build issues when no SDL is available 2017-12-02 15:37:35 -08:00
Mark Pizzolato
b167d889a7 makefile: Add support for HomeBrew supplied packages on OS X
Addresses issues discussed in #493 and #489
2017-12-02 15:22:44 -08:00
Seth Morabito
395420b8b8 3b2: Remove unused variables 2017-11-30 17:43:36 -08:00
Seth Morabito
0a00d8066a 3b2: Coverity issue cleanup 2017-11-30 16:30:53 +00:00
Mark Pizzolato
0293d7f4af SCP: Enrich EXPECT and SEND help and document information 2017-11-29 16:49:20 -08:00
Seth Morabito
9a7306a647 3b2: Use localtime instead of localtime_r 2017-11-30 00:14:24 +00:00
Seth Morabito
22b8e211c6 3b2: Improve TOD calculation 2017-11-29 21:44:40 +00:00
Mark Pizzolato
7df0468b75 makefile: Fix typo in Haiku specific sections 2017-11-27 07:41:25 -08:00
Mark Pizzolato
5ac4aaa1d4 makefile: Rework SDL/SDL2 package support
This change effectively reverts 8b1af8b862 and solves the Haiku build
problem mentioned in #489 in a platform specific way.
2017-11-27 06:43:05 -08:00
Mark Pizzolato
63f55c785e makefile: Abort build if GREP_OPTIONS environment variable is defined
This avoids the interference in this makefile's use of grep
as discussed in #492
2017-11-27 05:31:32 -08:00
Seth Morabito
00f8bbcef1 3b2: Time of Day Clock
- This change adds support for storing time between boots in the Time
  of Day clock. An effort has been made to keep the Time of Day clock
  in sync with the wall clock between boots, so that user-set time
  advances properly between boots.

- Added a couple of custom help routines for TOD and NVRAM.
  I will be filling in more help routines as time permits.
2017-11-26 18:26:11 -08:00
Seth Morabito
3147c30b80 3B2: Fix critical UART bug 2017-11-25 11:04:04 -08:00
Seth Morabito
c2c248a1f2 3b2: Clean up compiler warnings 2017-11-25 10:36:28 -08:00
Seth Morabito
df54c87bf7 3b2: Coverity issue cleanup 2017-11-25 01:38:05 -08:00
Seth Morabito
690c30b6f4 3b2: Gracefully handle clock reset
Clock reset was not being handled gracefully at all, leading some
diagnostic tests not to pass, or not to pass consistently.

This change will "kick" the system clock whenever the timer divider is
reset, so the new divider is picked up immediately.
2017-11-25 01:38:05 -08:00
Seth Morabito
b23ebbe312 3b2: Refactor IU into 5 devices 2017-11-25 01:38:05 -08:00
Seth Morabito
f6e63892b4 3b2: Preserve opcode values in history 2017-11-25 01:38:05 -08:00
Seth Morabito
be48e5809b 3b2: Support 'Write Track' floppy command 2017-11-25 01:38:05 -08:00
Mark Pizzolato
243ee968fb SCP: Fix REGister initialization macros to avoid nested macro insertion 2017-11-21 01:20:49 -08:00
Seth Morabito
804ea8e322 3b2: Initial release of an AT&T 3B2 model 400 emulator.
For information on usage, please see the file 3B2/README.md
2017-11-20 18:21:49 -08:00
Mark Pizzolato
7246e74004 SCP: Add a SIM_OSTYPE built-in environment variable. 2017-11-20 15:23:19 -08:00
Mark Pizzolato
61679ed8f0 SCP: Add optional write_callback to REGister structure called only on DEPOSIT
Add necessary macros to populate this field and cleanup all the
existing macros to be simpler.
2017-11-19 08:18:02 -08:00
Mark Pizzolato
8b1af8b862 makefile: Use sdl tool (sdl-config, sdl2-config) to locate SDL components
As discussed in #489
2017-11-17 08:13:48 -08:00
Mark Pizzolato
f594f0c98a SCP: Be sure to call optional sim_vm_post in remote console sessions 2017-11-16 08:43:38 -08:00
Mark Pizzolato
9bb1cfd9f9 SCP: Add useful info for HELP SET CONSOLE options 2017-11-14 18:47:44 -08:00
Mark Pizzolato
3eadc405d0 PDP10: Ignore 0 value writes to the timer interval register
This avoids a divide by zero which is never right, but it is unclear
what the real hardware did.  It wouldn't be useful in any case.

As discussed in #486
2017-11-14 18:47:05 -08:00
Mark Pizzolato
107f620f4c makefile: Fix MinGW build when using windows-build libpthreadsGC2 2017-11-12 15:23:38 -08:00
Mark Pizzolato
b45b9426c6 makefile: Tolerate changing MinGW include file changes
Fix #487
2017-11-11 10:52:29 -08:00
Mark Pizzolato
a8010f6fdb TMXR: Add counter of stalled transmits.
- Don't count stalls as drops since they can be retried
- Count stalls, which probably are rare on network connections but can
   happen more frequently on serial port connections.
2017-11-10 19:35:07 -08:00
Mark Pizzolato
8551a2d477 FRONTPANEL: sim_frontpanel API version 6 release
- Add dithering option to bit sampling
2017-11-09 23:02:39 -08:00