326 Commits

Author SHA1 Message Date
Alexandre Bencz 3557ce18fa Add WebSocket console transport (WSCNSLPORT) alongside the existing telnet console (#840)
* Add WebSocket console transport (WSCNSLPORT) alongside the existing telnet console

* Added documentation and fix for vs2008

* Added IronTerm as a webterminal reference

* Fix MOD_RULES2.msvc to include wscnsl
2026-06-02 08:45:40 -07:00
Fish (David B. Trout) f0f9b5704d * By request tweak: add [P|S|H] (Primary/Secondary/Home) option to "b+" breakpoint "asid" parameter 2026-05-20 09:12:57 -07:00
Fish (David B. Trout) 683f10c28f By request: add [H|P] (Home/Primary) option to "b+" breakpoint "asid" parameter 2026-05-16 09:30:00 -07:00
Fish (David B. Trout) e20c4f2c5f More friendly/intuitive tape file/drive commands:
The "devinit" command and its syntax is not exactly intuitive when it comes to mounting/dismounting tape files onto/from tape drive devices.
2026-04-25 13:15:16 -07:00
gottfriedleibniz d79382bbfe Run codespell on README, build, and source files. (#824)
* chore: run codespell on source/header files

Fixes most reported typos discovered by codespell (while trying to be
unopinionated about American vs. British English).

* chore: run codespell on build/readme files
2026-04-10 11:01:50 -07:00
Fish (David B. Trout) 588091de45 Add missing command help for CCW opcode tracing. 2025-12-14 09:22:15 -08:00
Fish (David B. Trout) 4887cde4fc (tweak to 'logopt' command help: mention default) 2025-10-30 16:29:39 -07:00
Fish (David B. Trout) c7d65ea5e0 Fix Dasd Hardener "wait 0 seconds" loop bug + minor tweaks 2025-03-10 11:25:04 -07:00
Ross Patterson 0a76173eaa Fix #701 (long delays to harden CCKD DASD) (#716)
* Fix #701

* Fixups from @Fish-Git code review.
2025-02-07 22:32:47 -08:00
salva-rczero 07bbc8bdff vr command: Display or alter vector registers (#652)
* Zvector instructions support changes

* Fish's corrections

* vr command: Display or alter vector registers

* Cleanup: tabs to spaces
2024-04-26 08:09:12 -07:00
Fish (David B. Trout) 9195ab9937 Add 'mtc' as alias for existing 'mt' command. 2024-03-16 14:40:09 -07:00
Andrey 434aefba07 add timed statistics to instruction counting (#588)
* add timed statistics to instruction counting

* fix 8B   SLA   - Shift Left Single

rewrite without loop

* Update general2.c

* Revert "Update general2.c"

This reverts commit 2ec278d4f2.

* Revert "fix 8B   SLA   - Shift Left Single"

This reverts commit 8016081a2e.

* renaming macro & option

macros renamed,
option renamed,
variable declaration separated from usage.

---------

Co-authored-by: andrey.baldin <andrey.baldin@tmk-group.com>
2023-08-25 19:32:20 -07:00
Fish (David B. Trout) 4a0234eb17 Fix and enhance ENGINES command:
1. Don't update sysblk unless if error(s) detected!
2. Display current value if no argument specified.
2023-08-22 20:25:49 -07:00
Fish (David B. Trout) 87d04ed9ef Fix usleep() bug causing excessive host CPU consumption:
The root cause of the bug was in my incorrect #define of MAX_TOD_UPDATE_USECS in featall.h, which was #defined to 1000000 (one million) instead of 999999, thereby causing the TXF rubato_thread to do a usleep for 1000000 (one million) microseconds, which, being invalid, was causing it to not sleep at all and instead return immediately with an error, causing it to loop continuously without sleeping, consuming all available host CPU due to the timer threads being the highest priority thread in Hercules.

comm3705.c also had a similar bug wherein it was using "min(1000000,delay)" for one of its usleep().

In addition to fixing the previously mentioned bug, I have also introduced a new USLEEP() macro which calls a new "herc_usleep()" function that will report any usleep() error that might occur. (I purposely did not code it to fix (hide) the problem but rather to just report it so that the caller can thus be fixed to not make invalid usleep calls.)

This should close GitHub Issue #589 "Auxiliary threads eating up CPU time" as well as the long running "CPU utilization on Raspberry Pi" thread that took place in the main Hercules group recently.
2023-08-04 22:04:53 -07:00
Fish (David B. Trout) f68c81bcae New 'iconpfxs' command 2023-07-03 20:43:23 -07:00
Fish (David B. Trout) 9abb357bf7 (minor cosmetic typo fixes in help text) 2023-02-07 04:43:57 -08:00
Fish (David B. Trout) f26318a01a New "\reply" SCP command to suppress echoing of command
Closes security issue #541
2023-01-29 08:00:31 -08:00
Fish (David B. Trout) a0e3f92951 Update source file copyrights too! 2023-01-15 22:24:55 -08:00
Fish (David B. Trout) f5f160c314 New "t+CPU [cpuad]" selective instruction tracing by CPU 2023-01-14 15:09:07 -08:00
Fish (David B. Trout) 81225204db Make "OPTION_CKD_KEY_TRACING" permanent 2023-01-12 21:12:50 -08:00
Fish (David B. Trout) 598c467a44 NEW FEATURE: "Trace to File" support:
New 'tf' command to direct all instruction and I/O tracing to a disk file instead of immediately formatting and displaying on the console (which slows down Hercules execution to a CRAWL). Only the raw data is written to the trace file and a new 'tfprint' utility is provided to produce the actual trace report (identical to what would normally be displayed on the Hercules console).

Closes issue #33
2023-01-10 23:50:55 -08:00
Fish (David B. Trout) 2c85322602 Add single devnum support to CKD Search Key trace command 2023-01-09 23:41:20 -08:00
Fish (David B. Trout) 0afad3bdc3 Fix crash if "ctc debug" command on unconnected CTCE device:
Closes #536.

Note: also added support for "ctc debug" command by itself (i.e. without any other operands) to LIST the current CTC debugging state for all CTC devices.
2022-12-29 03:10:39 -08:00
Fish (David B. Trout) eb80e1f1ed QUITMOUT command support, per request. 2022-12-20 17:31:58 -08:00
Fish (David B. Trout) 38d96955b9 Tweak SYSCLEAR cmd help text 2022-12-04 02:18:59 -08:00
Fish (David B. Trout) 6dee8ff37b SYSGPORT statement/command support:
closes #505
2022-10-15 21:45:15 -07:00
Fish (David B. Trout) ca92844142 Clarify 'cpuverid' command behavior
(Also tweaked 'cpuverid' command to issue "W" warning message when 'FORCE' option is used.)
2022-09-30 23:59:17 -07:00
Fish (David B. Trout) 8c0bcb8a75 New "bear" command to set/display BEAR
(we have commands to set display all other registers so why not one for the BEAR too?)
2022-09-21 12:07:33 -07:00
Fish (David B. Trout) 777a71c0ee New CCKD option: 'gcmsgs=1' : display garbage collector messages 2022-07-05 15:56:23 -07:00
Fish (David B. Trout) fa25b8bbbb Remove unused "ccwstep" flag
It has existed since day one (2001 initial repository setup), but has NEVER been used!
2022-03-31 11:49:50 -07:00
Fish (David B. Trout) 8afb4b8adc Document previously undocumented 'dtax' trace option 2022-03-30 20:10:45 -07:00
Fish (David B. Trout) ab7d65a629 Support empty message (blank line) for message/msgnoh commands 2022-02-21 16:43:01 -08:00
Fish (David B. Trout) 9d56855c36 Add string support to 'r', 'abs' and 'v' commands 2022-02-21 14:04:35 -08:00
Fish (David B. Trout) bf377f63ed Release 4.4 2021-12-18 06:28:12 -08:00
Fish (David B. Trout) d3242d26fc 99.9% cosmetic except TB: use clear_page_4K instead for efficiency
[skip travis]
2021-07-05 20:12:47 -07:00
Fish (David B. Trout) 05d9ea923f Predefine PTT_XXX class to make generic/custom debug PTT tracing easier:
When debugging a given problem, it is oftentimes very handy to sprinkle PTT tracing statements throughout the code being debugged. Having an existing PTT tracing class already defined for you (rather than having to manually define it yourself each time) makes doing so faster and easier.

[skip travis]
2021-05-16 13:22:38 -07:00
Fish (David B. Trout) 6b99eea3ec CPUVERID "FORCE" option:
This allows generic standalone tests to detect whether they're running on Hercules or not and react accordingly.
2021-05-14 13:32:18 -07:00
Fish (David B. Trout) 9407f10eee "f" command enhancements:
1. Add range support to f+/f- commands.
2. New "f?" command to display -unusable range(s).
2021-05-14 13:12:49 -07:00
Fish (David B. Trout) 6952a34967 Copyright 2021 [skip travis] 2021-03-02 23:17:24 -08:00
Fish (David B. Trout) 80c085d495 Tighten MODEL, PLANT and MANUFACTURER processing:
DON'T automatically convert specified value to uppercase (as doing so tends to hide errors). Instead, only accept values containing 0-9 and/or uppercase A-Z, just as the Principles of Operation says.
2021-03-02 16:54:06 -08:00
Fish (David B. Trout) ac430350c4 Allow "IBM" and undefined facility bits to be modified:
Closes #353.

[skip travis]  (more commits to come...)
2021-01-05 13:40:10 -08:00
Fish (David B. Trout) f21ddfe786 Deprecate PANRATE and PANTITLE; move into PANOPT instead. 2020-12-11 21:01:55 -08:00
Fish (David B. Trout) c98b6ac886 TXF: track unconstrained statistics too 2020-11-19 23:28:23 -08:00
Fish (David B. Trout) 8dbc8af603 "txf stats" support 2020-11-09 18:22:06 -08:00
Fish (David B. Trout) d6dda19974 cosmetic tweak stop_all_cpus, new start_all_cpus:
Mostly just to make them consistent with one another.

The new start_all_cpus function will be needed for eventual #322 implementation.

[skip travis]
2020-09-24 05:41:08 -07:00
Fish (David B. Trout) c3bc349f77 PANOPT: replace MSGCOLOR=YES with DARK/LIGHT instead. 2020-08-26 18:04:23 -07:00
Fish (David B. Trout) 928dd386b4 New PANOPT option: MSGCOLOR=YES/NO. 2020-08-21 16:31:36 -07:00
Fish (David B. Trout) 45106b0b1e Finer grained TXF tracing:
New TND, TAC, WHY, CFAILS and CPU tracing options. See "help txf" for info.
2020-08-11 16:46:27 -07:00
Fish (David B. Trout) b95870cf37 Update documentation. [skip travis] 2020-05-17 22:06:54 -07:00
Fish (David B. Trout) 8a58d3e5cf TXF: transactional tracing support: new command: 'txf'
("help txf" for info/usage)

[skip travis]
2020-05-17 22:06:45 -07:00