479 Commits

Author SHA1 Message Date
mcisho
561507ead1 Store the vector exception code. 2024-10-03 13:45:04 +02:00
mcisho
ef5ff12387 Display the vector exception code. 2024-10-02 19:31:59 +02:00
Fish (David B. Trout)
a17d3947b4 (FRICK!) I'll get it right yet. 2024-03-01 16:31:02 -08:00
Fish (David B. Trout)
591217b89b Fix careless typo 2024-03-01 16:23:24 -08:00
Fish (David B. Trout)
b6f9d02dc4 (Oops!) Fix HHC00809 to prevent redtest.rexx failure 2024-03-01 10:14:02 -08:00
Fish (David B. Trout)
2e763e9e4a Tweak disabled wait and 'stop' response to lessen confusion.
Closes #631.
2024-02-29 14:01:06 -08:00
Fish (David B. Trout)
d094e4f3c6 Carry over into SDL Hyperion some recent Aethra fixes:
. Fix compiler warnings on macOS.
. Fix compiler warnings on GCC 12.

. Use performance cores on Apple Silicon. (Enrico Sorichetti)

. Save maxprio/minprio in sysblk so impl() doesn't clobber them. (Tyler Mitchell)
. Handle non-GNU Linuxes properly. (Tyler Mitchell)
. getprotobyname: some Linuxes want "tcp" not "TCP". (Tyler Mitchell)
. Fix for occasional crash on exit. (Tyler Mitchell):

  In POSIX, detach_thread() is neither needed nor valid
  after a return from join_thread(). When the latter returns,
  the thread has exited and its resources are released,
  so detach_thread() not only is not needed, but references
  deallocated resources. This can be harmless, but not always.
2024-01-24 13:17:39 -08:00
Fish (David B. Trout)
464ec151bf Fix to allow FEATURE_S370_S390_VECTOR_FACILITY to build properly 2023-09-18 22:46:52 -07:00
Andrey
c0ddc46de3 Check tracing flag before function call. (#595)
* 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.

* check tracing flag before function call

* try to revert some chars changing.

* try to revert some chars changing.

* try to revert some chars changing

* Update sie.c

* Revert "Update sie.c"

This reverts commit 67a7969886.

---------

Co-authored-by: andrey.baldin <andrey.baldin@tmk-group.com>
2023-08-27 09:02:02 -07:00
Fish (David B. Trout)
99dbda7a0d Add thread-id number to some device trace messages 2023-07-09 17:37:00 -07:00
Fish (David B. Trout)
f83880b58b Wait for newly configured CPU to reach STOPPED state
Closes GitHub Issue #542
2023-02-04 21:28:39 -08:00
Fish (David B. Trout)
a0e3f92951 Update source file copyrights too! 2023-01-15 22:24:55 -08:00
Fish (David B. Trout)
15bf37946c (minor trace-to-file fixes and tweaks) 2023-01-15 21:52:36 -08:00
Fish (David B. Trout)
0354897598 (cosmetic rename of: regs->trace_this_cpu ==> to: regs->insttrace) 2023-01-15 19:56:02 -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)
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)
97a397673e Various misc. tweaks:
Mostly related to messages and the moving of several misc. utility/helper functions to hscutil.c where they belong.
2022-11-23 01:01:32 -08:00
Fish (David B. Trout)
1f7febc489 minor instruction counting tweak for better(?) accuracy 2022-04-17 10:08:18 -07:00
Fish (David B. Trout)
42e3a87558 Consistent TXF macro names: TRANS... ==> TXF... 2022-03-31 12:25:41 -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)
d5410a2b30 z/VM TXF PER support (i.e. TXSUSPEND = Event Suppression) 2022-02-09 14:33:59 -08:00
Fish (David B. Trout)
ea23d07d4f Correct some problems identified by ubsan
[skip travis] (more commits coming)
2021-10-27 17:10:18 -07:00
Fish (David B. Trout)
2d4e206512 Minor performance tweak to previous SIE arch-dep violations fix 2021-10-19 17:08:51 -07:00
Fish (David B. Trout)
3eaeb6e9cc Fix many SIE arch-dep violations 2021-10-19 09:40:56 -07:00
Fish (David B. Trout)
e24c303dda Undo bad SIE PSW.IA "fix":
A fix for an SIE problem was originally committed by jj (Jan Jaeger) on 2008-12-05 (spinhawk commit 9331efc23a, SDL Hyperion commit deefb175d1) that was later "fixed" by a bad commit from IanWorthington (spinhawk commit 5df8c6a9de, SDL Hyperion commit 1382d73b24).

This bad "fix" ended up causing incorrect behavior for at least VM/ESA 2.4.0 ADCD and quite likely all subsequent VMs ever since (e.g. z/VM, etc).

This commit reverts the bad fix and restores proper VM (SIE) functionality. VM/ESA 2.4.0 ADCD now behaves correctly (i.e. the way it did *before* the bad "fix" was made).
2021-10-10 21:42:53 -07:00
Fish (David B. Trout)
6fb2873606 checkstop cpus tweak: detect intlock bug 2021-10-01 19:31:25 -07:00
Fish (David B. Trout)
55818834c9 New "IS_INTLOCK_HELD" macro
[skip travis]  (another commit coming...)
2021-10-01 19:26:48 -07:00
Fish (David B. Trout)
629d9a80b6 Crash on unexpected ("impossible") switch case
[skip travis]  (more commits coming...)
2021-10-01 19:22:48 -07:00
Fish (David B. Trout)
d69649b533 (cosmetic) [skip travis] 2021-10-01 19:13:37 -07:00
Fish (David B. Trout)
ef86c24194 Fix skey handling part 4 of 6 (temporary breakage):
Start using new skey functions

[skip travis]
2021-08-01 08:32:29 -07:00
Fish (David B. Trout)
527b549c32 Rename FEATURE_INTERPRETIVE_EXECUTION ==> FEATURE_SIE
[skip travis]
2021-07-05 18:43:30 -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)
8bdf6b0f7c Fix TXF PPA "Much help" implementation:
TXF assistance shouldn't be applied (enforced) when there's no transaction currently executing. TXF assistance only applies to transactions, not to non-transactional code.

Note: "txf_PPA" should continue to *only* be reset at successful transaction end (TEND). If no transaction is currently active, then its value should simply be ignored, but *not* reset, as that would negate its whole purpose.
2021-03-16 13:57:04 -07:00
Fish (David B. Trout)
6952a34967 Copyright 2021 [skip travis] 2021-03-02 23:17:24 -08:00
Fish (David B. Trout)
fb4a02cbd1 Reverse the order of TXF PPA assists:
Provide rubato timer assist first, and then if that still doesn't help enough, provide interrupt suppression second as a last resort (the complete opposite of the way TXF PPA assists were previously actuated).

This seems to result in far fewer transaction failures (and as a consequence, retries), resulting in a significant positive/beneficial improvement in overall TXF reliability.
2021-02-28 16:40:02 -08:00
Fish (David B. Trout)
2cb0921980 Implement GitHub Issue #370 fixes:
1. Don't start rubato thread unless TXF (facility 73) is enabled, and stop rubato thread when TXF is disabled.

2. Increase *minimum* TIMERINT value to 50 usecs (same as our current default) to prevent severe negative impact to host system performance that otherwise occurs when smaller values are used.
2021-02-25 08:54:57 -08:00
Fish (David B. Trout)
60f27837d4 Remove unneeded TXF constraint check
The constraint will always be checked before the branch's target instruction is executed, so there's no need to check in either of the successful branch functions.
2021-02-23 12:53:07 -08:00
Fish (David B. Trout)
280ad68ecd Fix TXF_INSTRADDR_CONSTRAINT bug
[skip travis]  (another commit is coming!)
2021-02-23 12:40:36 -08:00
Fish (David B. Trout)
2806ddee57 Make OPTION_TXF_PPA_SUPPORT permanent 2021-02-06 20:03:00 -08:00
Fish (David B. Trout)
9df983e033 OPTION_TXF_PPA_SUPPORT:
Provides PPA (Perform Processor Assist) support for TXF by:

  1. Conditionally suppressing interrupts during transaction retry
  2. Conditionally decreasing frequency of timer interrupts during transaction retry (by automatically increasing the active "timerint" value) during periods of high transactional load (as controlled by the new timer.c "rubato_thread").

based on the amount of assistance requested by the PPA instruction's transactional-abort-assist operand-1 value.
2021-01-25 17:06:23 -08:00
Fish (David B. Trout)
4877597d83 COSMETIC: clock.c/h et al. cleanup/reorganization (cont'd)
Rename: tod_clock ==> get_tod_clock, cpu_timer ==> get_cpu_timer

[skip travis]  (ongoing effort...)
2021-01-18 20:38:14 -08:00
Fish (David B. Trout)
e1ef27eb69 Fix bogus "instcount 384" in panel status line at startup
Closes #345

[skip travis]
2020-12-18 10:27:09 -08:00
Fish (David B. Trout)
0ce64cca60 More proper(?) fix for GitHub Issue #340
This is a more proper fix for GitHub Issue #340, which itself identified a problem with commit 7a52a4bbd7, so this is a more proper fix for commit 7a52a4bbd7 as well.

It enhances the OSTAILOR command in such a way as to make the test for z/VM in cpu.c a bit more reliable so as to resolve GitHub Issue #340.

I don't particularly like relying on an OSTAILOR setting to determine whether the guest is running z/VM or not, but we don't have much choice as there is really no other reliable way to do so.
2020-12-11 01:20:42 -08:00
Fish (David B. Trout)
1a0aff13a4 OPTION_TEMP_GH340_FIX:
Temporary fix for GitHub Issue #340.
2020-12-09 15:17:46 -08:00
Fish (David B. Trout)
939bd7b229 Fix typo in f095637632
Ivan's attempted revert of 56a5cb10c3 was bad. This fixes it. (Yeah, a comedy of errors!)  :)
2020-12-09 15:14:50 -08:00
Ivan Warren
f095637632 Back out chnages introduced by 56a5cb10c3 2020-12-09 22:50:50 +01:00
Ivan Warren
56a5cb10c3 fix: Fix (attempt) for race condition in runtest (make check) 2020-12-07 15:52:54 +01:00
Fish (David B. Trout)
2c34beef99 (remove trailing blanks) [skip travis] 2020-12-06 11:28:09 -08:00
Fish (David B. Trout)
ef8e61b095 Make some research build options permanent:
The following research build options are now permanent:

  OPTION_DEPRECATE_AIM          (Deprecate regs->aim usage)
  OPTION_DEPRECATE_TXF_LASTACC  (Deprecate 'txf_lastacc')
  OPTION_FIX_SIE_ICODE_BUG      (Fix possible SIE icode bug)

The following research build options has been removed:

  OPTION_TXF_SINGLE_THREAD      (One transaction at a time)
2020-11-10 12:41:17 -08:00
Fish (David B. Trout)
360156d759 100% cosmetic rename
[skip travis]
2020-10-21 11:10:21 -07:00