"Some?instructions are?valid?either?in the?370-XA mode?or in the System/370?mode,?but not in both modes.?If instruction?interception?is either?mandatory or conditional in?the?mode?in which the instruction?is valid,?then?it?is?undefined whether?instruction interception?is?recognized unconditionally or?an?operation exception?is?recognized in the invalid?mode.
When?code?04?is?stored, guest?instruction?execution?is?suppressed, except for the?COMPARE AND?SWAP,?COMPARE?DOUBLE?AND?SWAP,?and?TEST?AND?SET?instructions?(which are completed)."
page 11
Note that his code 4 is occurring on a compare_and_swap ...
On Tue, Oct 25, 2022 at 11:29 PM Fish Fish <david.b.trout@...> wrote:
Jim Snellen wrote:
> I am running VM/370 with DOS/VS as a guest machine and
> MVS 3.8J TK4- as a guest machine.? I use HercGUI
Which should not make any difference.
> and Hercules version 4.4.1.10647-SDL-gd0ccfbc9.? I've recently
> noticed that a recurring display occurs:
>
> HHC02324I PSW=078D2000000383EC INST=BA661000 CS 6,6,0(1) compare_and_swap
> HHC02326I V:00FE3E30:R:00000000007E3E30:K:06=009BCD10 809BCF98 ...
[...]
> HHC00801I Processor CP00: Protection exception code 0004 ilc 4
[...]
> Am I doing something wrong to cause this?? It looks like
> these messages are going to the log file and there's a lot
> of these!
They *appear* to be legitimate errors, as in whatever you're running in/on your guest is not doing something correctly (i.e. something is malfunctioning, i.e. some piece of software you're running is buggy).
According to the PSW, the program is running in Problem State with PSW Key 8 (the "8D" in your PSW), but the storage the 'CS' (Compare and Swap) instruction is trying to access is Key 0 (the '0' in "K:06"), which by my calculations would indeed cause a bona fide Protection Exception Program Interrupt.
<shrug>
Check your code. I suspect it's buggy.
--
"Fish" (David B. Trout)
Software Development Laboratories