1
0
mirror of https://github.com/simh/simh.git synced 2026-01-29 21:21:31 +00:00
Commit Graph

953 Commits

Author SHA1 Message Date
John D. Bruner
729502aa9d SCP: treat SIGTERM and SIGHUP as equivalent 2025-05-09 19:55:09 -07:00
Mark Pizzolato
6ae1467470 SCP: Assure that sim_async_lock is always a recursive lock
This is needed for both the Intrinsic and basic pthreads cases.
2025-03-22 08:12:01 -10:00
Mark Pizzolato
33166dfcdf SCP: Fix potential multi threaded simulator activities when flushing log data
Avoid the potential by properly leveraging the range that the
recursive mutex which already properly serializes separate activities
to the debug log file.
2025-03-21 09:36:36 -10:00
Mark Pizzolato
fed5342f44 SCP: CONSOLE Cleanup and DBGSIGNAL help
- Add HELP language for SET CONSOLE DBGSIGNAL|NODBGSIGNAL.
- Remove obsolete sim_os_poll_kbd_ready platform specific routines
  which were only used with the never functional asynchronous TMXR
  code which has been otherwise removed everywhere else.
- Cleanup DBGSIGNAL related code comments

-
2025-03-20 17:12:50 -10:00
Mark Pizzolato
bf83567e61 SCP: Add debugging support for shutdown activities 2025-03-18 17:14:02 -10:00
Mark Pizzolato
ca8f3f096e SCP: Add SIM_HOST_CORE_COUNT and SIM_HOST_MAX_THREADS environment variables
Scripts (or internal test code) can use this information as needed.
2024-09-06 15:17:50 -10:00
Mark Pizzolato
cbd8bd8a0a SCP : Log various initialization steps with DebugInit enabled
Removed previously added DEPOSIT ALL 0 in precalibrate routine.
That DEPOSIT was added to explicitly restore memory to 0's at simulator
startup, but the several second cost of executing that slowed down
startup of any simulator which had precalibration support.  Anyone who
explicitly cares to have zeroed memory on startup should include such a
command in their own simulator configuration.
2024-07-16 12:05:41 -10:00
Peter Schorn
c7df248f09 SIMH: Fix spelling errors in comments and strings 2024-07-16 12:04:53 -10:00
Mark Pizzolato
32d6b09c8e SCP: Allow glyph parsing to specify a delimiter while whitespace isn't one 2024-07-11 15:42:41 -10:00
Mark Pizzolato
746981b8a0 SCP: Correct restore of disk containers with sim_disk drive type indicated 2024-07-10 12:23:25 -10:00
Mark Pizzolato
ee7806f20e SCP: Add "IF DEVICE <devicename>" to test the existence/enabled-state of device 2024-07-04 18:11:15 -10:00
Mark Pizzolato
cc2a00364f SCP: Avoid extra newline output in full SHOW VERSION output 2024-06-21 11:36:08 -10:00
Mark Pizzolato
62d7e94266 TIMER: Properly interpret input while setting throttle mode
Allow: n                execute n instructions/cycles per second
           nK              execute n thousand instructions/cycles per second
           nM             execute n million instructions/cycles per second
           n%             occupy x percent of the host CPU capacity
           n/t             sleep for t milliseconds after executing x
                             instructions/cycles
           n{K|M}/t    sleep for t milliseconds after executing x
                             thousand or million instructions/cycles
2024-06-05 11:13:35 -10:00
J. David Bryan
b24bf74f29 SCP: Report optional VM specific release after optional delta in SHOW VERSION
From simh v3.12-5 changes
2024-05-21 14:22:41 -10:00
Mark Pizzolato
7ca7f0fb3a SCP: Tolerate quoted LOG(, DEBUG, etc.) filenames which can have spaces 2024-05-03 10:19:46 -10:00
Mark Pizzolato
6767c1a9d5 SCP: Allow TYPE command output to be terminated by SIGINT 2024-04-28 14:09:27 -10:00
Mark Pizzolato
c16e379b73 SCP: Cleanup SET ASYNC/NOASYNC status message to use sim_messagef 2024-04-18 16:36:43 -10:00
Mark Pizzolato
f2344dfddc SCP: Add Linux and macOS version to SHOW VERSION output 2024-04-16 18:25:20 -10:00
Mark Pizzolato
b404ccd050 SCP: Make debug timestamps consistent when in NOCALIBRATE mode 2024-04-04 09:56:18 -10:00
B. Scott Michel
f7dfefee72 SCP: sprint_val comma bug
- Fix comma separator code segmentation fault: "ndigit - 3" can become a
  very large unsigned number for ndigit < 3.
2024-03-21 13:55:52 -10:00
Mark Pizzolato
0ff0d0f8a3 SCP: Enhance EXAMINE address range output
1 - Summarize repeated memory contents so that the memory range with a
      given value only emits 2 lines of output
2 - Allow ^C (SIGINT) to potentially abort long running EXAMINE output
2024-03-20 13:46:14 -10:00
Mark Pizzolato
f4089b330e SCP: Add host processor core and thread info to SHOW VERSION output 2024-01-14 13:04:31 -10:00
Mark Pizzolato
fca6bace44 SCP: Add asynchronous and processed event counters
- Add abort if sim_aio_activate is called when running with ASYNC disabled
2024-01-09 06:07:33 -10:00
Mark Pizzolato
4dfb3508bf ETHER: Make sure SET NOASYNC is effective for Ethernet devices
- Make sure that asynchronous mode can't be changed if devices using
   sim_ether are already attached.
- Add missing DEV_ETHER type flag for the only sim_ether using device
   that didn't already have it.
2024-01-06 14:55:06 -10:00
Mark Pizzolato
54f55777f5 SCP: Minor message text and formatting cleanup 2024-01-05 09:50:48 -10:00
Mark Pizzolato
0a79762388 SCP: Remove remnants of previously removed async TMXR pieces 2024-01-05 09:09:22 -10:00
Mark Pizzolato
197ff62587 SCP: Leverage a memory file while producing examine output 2023-12-06 09:49:05 -10:00
Mark Pizzolato
810ec6300d SCP: Add visible countdown for the SLEEP command 2023-11-16 09:47:03 -10:00
Mark Pizzolato
65d0ae2a44 SCP: Properly write debug output for commands run at the sim> prompt
- Without regard to whether the circular buffer data is otherwise in
   use while instructions are executing.
- When a circular debug buffer is in use, avoid writing out the contents
  with the periodic open file flushes and only do so on returns to the
  sim> prompt and when debug is closed
2023-11-12 12:49:07 -10:00
Mark Pizzolato
4b8902cd06 SCP: When debugging, add output of EXAMINE commands to debug data 2023-11-12 10:04:28 -10:00
Mark Pizzolato
67ec597696 SCP: Add support for REGisters containing double values 2023-11-12 10:04:28 -10:00
Mark Pizzolato
985137cbff SCP: Avoid reading excess data when putting register values into a string 2023-10-06 13:40:11 -10:00
Tony Lawrence
a6ad4d0acb SCP: Fix correctly loading simh.ini when user HOME not defined 2023-10-03 09:07:57 -10:00
Mark Pizzolato
d7560cf3e4 SCP: Provide more context when command errors are found 2023-09-25 14:30:14 -10:00
Mark Pizzolato
40aa90f732 SCP: Fix source content address while issuing error message 2023-09-19 06:25:59 -10:00
Mark Pizzolato
c8b03944a5 SCP: Fix Invalid register message text 2023-09-19 03:09:11 -10:00
Mark Pizzolato
ec475d83f8 SCP: Report detailed context while parsing errors in EXAMINE/DEPOSIT commands 2023-09-18 11:21:54 -10:00
Mark Pizzolato
1f9881734a SCP: Exit if disk or tape initialization routines return a failure 2023-09-10 08:45:54 -10:00
Mark Pizzolato
06659c82c8 SCP: Correct DIR command to use create time if modify time isn't populated. 2023-09-04 14:48:22 -10:00
Mark Pizzolato
2f1ab2ec6b DISK: Polishing various functionality 2023-08-30 06:17:35 -10:00
Mark Pizzolato
61e31a6e0e SCP: Add option to turn debugging on for SCP initialization activities 2023-08-29 13:15:19 -10:00
Mark Pizzolato
78fe4ec5e0 SCP: Use sim_defs.h defined global stringify macro 2023-07-29 08:10:50 -10:00
Mark Pizzolato
f9dedad627 makefile: curl needs to be actively installed on some platforms
- Make missing curl or tar visible in simulator environment variables:
       SIM_CURL_CMD_AVAILABLE
and SIM_TAR_CMD_AVAILABLE
2023-07-29 08:09:48 -10:00
Mark Pizzolato
63028863e4 SCP: Default to dynamically loading LIBEDIT, LIBPCRE and LIBPNG 2023-07-27 06:28:53 -10:00
Mark Pizzolato
e6f47400e8 SCP: Cleanup EXPECT help 2023-07-21 04:57:25 -10:00
Mark Pizzolato
fddcd7c346 SCP: Display editline version in SHOW VERSION output 2023-07-21 04:22:31 -10:00
Mark Pizzolato
79714192b4 SCP: Define and use a global macro to stringify macro values 2023-07-21 04:13:35 -10:00
Mark Pizzolato
6a27b7ef1b SCP: Properly handle when regex string matches without some substring matches
B. Scott Michel's run of clang memory sanitizer potentially identified
that  when a substring doesn't match the returned array offsets would
be -1.

This commit handles that potential and sets the respective substring as
an empty string.
2023-07-15 11:58:28 -10:00
Mark Pizzolato
91e2e4beb9 TIMER: More reliable NOCALIBRATE initialization
- Behave well when NOCALIBRATE mode is enabled after some instruction
  execution already happened.
- Properly detect the reliable calibrated clock or use the internal one.
2023-06-27 13:46:31 -10:00
Mark Pizzolato
008ecc4e8b SCP: Correctly implement $ in all EXAMINE or DEPOSIT cases 2023-06-27 11:59:59 -10:00