From: Johnny Billquist <bqt@softjar.se>
Subject: Re: PDP11 Values from MFPT
Date: Mon, 06 Feb 2012 15:56:28 +0100 [thread overview]
Message-ID: <jgopmt$15g$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <4f30d0d8.41682905@nntp.aioe.org>
On 2012-02-06 14.51, paramucho wrote:
> On Sun, 05 Feb 2012 16:44:43 +0100, Johnny Billquist<bqt@softjar.se>
> wrote:
>
> <snip>
>
>>>>> On closer inspection I find that I'm not using SR1 for E11 detection
>>>>> tests at all. In fact, my E11 test checks whether bits 5 and 6 of MMU
>>>>> SR0 are writeable. These bits are not writeable on the F11 or J11, but
>>>>> a closer inspection of the 11/34 architecture documents indicates they
>>>>> may well be writeable on a real 11/34, and that's the default E11 CPU.
>>>>> I may have to find a different E11 test (see further below).
>>>>
>>>> Ah. Next question (obviously) is if you tested SR1 in E11 and found it
>>>> failing, or if it actually works right?
>>>
>>> I knew it wasn't there in my other tests but I wrote a program to
>>> create an MMU fault to see if it was triggered under that condition.
>>> But it weren't and so I think it just ain't thar.
>>>
>>> SR0 SR1 SR2
>>> ?MMU2-I-MMU: 100003 27 1014 SimH
>>> ?MMU2-I-MMU: 100003 0 1014 E11
>>
>> Obvious follow up questions:
>> State of the machine before and after the trap? (Ie. relevant processor
>> registers)
>> E11 could do it the way I suggested. It would not be a true simulation
>> of the CPU, but a valid result. But I really don't know for sure at this
>> point, so I'm asking.
>
> I now understand what you meant when you wrote:
>
> I can see that it might be costly to maintain it, but on the other
> hand, if trappings never will occur with registers updated that
> needs rollback, SR1 can be left zero at all times.
> So it might actually be that E11 already does it "right".
>
> And yes, preliminary testing says that you're correct. Rather than
> providing the SR1 backout (rollback) information, E11 does the backout
> itself, obviating the need for SR1 information.
Ok. So it fails in truthfully simulate the machine it claims to
simulate, but it does fulfill the architecture design.
Since I think E11 have had less qualms about being absolutely truthful
in its simulation, I suspect this might stay around. I think Simh have
had a more strict view on this.
> This explains four things, perhaps:
>
> 1. The release note: "MMU. SR1 mechanized".
Right.
> 2. The otherwise cryptic command definition for SET FPBACKOUT (which
> I'd noted, but not followed up):
>
> FPBACKOUT J-11 SR1 behavior, autoinc/dec is always undone on
> aborted FPP instruction.
>
> I'm not sure how this is supposed to work in the real world.
Not sure what that command in E11 do. However, if the changes are backed
out also on FP instructions, then SR1 will still remain zero at all times.
> 3. And (now) looking further I note the command SET CPU [NO]SR1. I
> tried it out, but it seems to do nothing. Later.
No idea about that one. Maybe something in combination with the FPBACKOUT?
> 4. Why John once stated that the relevant XXDP diagnostic will fail.
> However, I can no longer find the reference.
I would seem logical that XXDP would fail if it checks this, yes.
> It seems that E11 also implements this auto-backout for the (default)
> 11/34 model. However, the 11/34 model itself doesn't implement SR1, so
> that's another difference I can check.
Indeed. Somewhat expected that the backout would happen on other CPU
emulations as well, unless he explicitly "fixed" it for certain models.
But I don't think that would be meaningful. So SR1 existing/working or
not is a partly separate question from the backing out on failure.
> What I don't understand is this: if John has the rollback information,
> in whatever form, why doesn't he interpret it and apply it to SR1 when
> there's an MMU fault. An MMU fault is a relatively rare CPU event,
> like any interrupt, and thus doing fixups after an MMU fault is not
> going to significantly impact speed performance. Perhaps we should ask
> John :-) I haven't seen him here for a long time.
Good question. I suspect that could be done.
> The real problem is apparent: because no software (apart from tests)
> uses the software, the mechanism hasn't been tested. I think debuggers
> would have to be rewritten to use this technique. Indeed, I think this
> particular difference would force code which uses SR1 to be able to
> detect E11.
Debuggers? If you have an OS that does page faulting it would need to do
this as well. But yes, debuggers could possibly also use this
information, although I don't think any do today. I think the debugger I
normally use will tell me the contents of SR1 on a memory fault trap,
but will not act upon that information in any way.
> In any case, it is an architectural difference.
Implementation difference. :-)
Architectural, the SR1 is only used to do backouts of register
modifications on partially executed instructions. E11's way fulfills the
architecture just fine, even though it's different than J11. The same
code will do the right thing executing on either processor, without any
changes.
> I was going to write a more detailed test, which would exercise SimH
> as well as E11, but that's going to have to wait. I lost the night
> trying to get my 11/73 to work, but the pseudo-RL02 disk seems to have
> finally died on me (after decades of neglect). So I took out the quad
> 11/23 card out of the BA11 tower that is working and put the dual
> 11/73 along with a DLV11J but now the damn thing acts as if HALT is
> asserted. I really don't like hardware. I have boxes of cables, cards
> and connectors everywhere.
Ouch! :-(
Johnny
next prev parent reply other threads:[~2012-02-06 14:56 UTC|newest]
Thread overview: 222+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-15 14:37 PDP11 Values from MFPT Jerome H. Fine
2012-01-18 6:03 ` paramucho
2012-01-18 11:28 ` Johnny Billquist
2012-01-18 13:05 ` glen herrmannsfeldt
2012-01-18 13:26 ` Johnny Billquist
2012-01-26 3:24 ` Jerome H. Fine
2012-01-26 13:38 ` Johnny Billquist
2012-01-29 1:32 ` Jerome H. Fine
2012-01-29 1:43 ` Johnny Billquist
2012-01-26 3:23 ` Jerome H. Fine
2012-01-18 16:02 ` paramucho
2012-01-18 18:12 ` Johnny Billquist
2012-01-19 14:30 ` paramucho
2012-01-19 16:42 ` Johnny Billquist
2012-01-19 20:32 ` glen herrmannsfeldt
2012-01-20 13:32 ` paramucho
2012-01-20 13:29 ` paramucho
2012-01-20 16:48 ` Johnny Billquist
2012-01-21 12:25 ` paramucho
2012-01-21 20:15 ` Johnny Billquist
2012-01-26 3:25 ` Jerome H. Fine
2012-01-26 6:09 ` paramucho
2012-01-26 6:30 ` paramucho
2012-01-26 13:50 ` Johnny Billquist
2012-01-29 1:52 ` Jerome H. Fine
2012-01-29 2:08 ` Johnny Billquist
2012-01-26 13:48 ` Johnny Billquist
2012-01-26 13:46 ` Johnny Billquist
2012-01-29 1:35 ` Jerome H. Fine
2012-01-18 12:41 ` glen herrmannsfeldt
2012-01-18 13:18 ` Johnny Billquist
2012-01-18 14:28 ` glen herrmannsfeldt
2012-01-18 15:14 ` Johnny Billquist
2012-01-18 21:54 ` glen herrmannsfeldt
2012-01-18 22:32 ` Al Kossow
2012-01-19 0:22 ` Johnny Billquist
2012-01-19 1:30 ` glen herrmannsfeldt
2012-01-19 14:32 ` Bob Koehler
2012-01-19 16:45 ` Johnny Billquist
2012-01-20 17:55 ` Bob Koehler
2012-01-20 18:38 ` Bill Gunshannon
2012-01-18 16:25 ` paramucho
2012-01-18 18:00 ` Johnny Billquist
2012-01-19 14:25 ` paramucho
2012-01-19 16:50 ` Johnny Billquist
2012-01-20 13:32 ` paramucho
2012-01-20 16:54 ` Johnny Billquist
2012-01-21 13:16 ` paramucho
2012-01-21 13:58 ` Bob Eager
2012-01-21 20:02 ` Johnny Billquist
2012-01-22 11:59 ` Johnny Billquist
2012-01-22 14:03 ` paramucho
2012-01-22 16:15 ` Johnny Billquist
2012-01-23 4:14 ` paramucho
2012-01-18 13:20 ` Bob Eager
2012-01-19 14:29 ` Bob Koehler
2012-01-21 12:44 ` Tim Shoppa
2012-01-21 13:50 ` paramucho
2012-01-22 16:56 ` Tim Shoppa
2012-01-22 18:11 ` glen herrmannsfeldt
2012-01-23 3:52 ` paramucho
2012-01-21 14:25 ` glen herrmannsfeldt
2012-01-21 16:46 ` Bob Eager
2012-01-25 22:12 ` Tim Shoppa
2012-01-26 3:22 ` Jerome H. Fine
2012-01-26 13:46 ` paramucho
2012-01-29 1:34 ` Jerome H. Fine
2012-01-29 15:46 ` paramucho
2012-02-01 3:53 ` Jerome H. Fine
2012-02-01 11:22 ` paramucho
2012-02-01 11:48 ` Johnny Billquist
2012-02-01 13:48 ` paramucho
2012-02-01 14:43 ` stan
2012-02-01 16:37 ` paramucho
2012-02-01 18:05 ` stan
2012-02-02 2:24 ` Jerome H. Fine
2012-02-02 0:14 ` Johnny Billquist
2012-02-02 2:25 ` Jerome H. Fine
2012-02-02 9:29 ` Johnny Billquist
2012-02-02 18:52 ` glen herrmannsfeldt
2012-02-03 0:12 ` Johnny Billquist
2012-02-03 4:07 ` Jerome H. Fine
2012-02-03 14:15 ` Johnny Billquist
2012-02-03 15:00 ` paramucho
2012-02-02 13:31 ` paramucho
2012-02-02 19:07 ` glen herrmannsfeldt
2012-02-03 0:16 ` Johnny Billquist
2012-02-03 4:23 ` glen herrmannsfeldt
2012-02-03 12:01 ` Johnny Billquist
2012-02-03 15:36 ` Joe Oswald
2012-02-07 10:46 ` Johnny Billquist
2012-02-03 4:29 ` Jerome H. Fine
2012-02-03 12:50 ` Bill Gunshannon
2012-02-04 8:42 ` Charles Richmond
2012-02-04 13:38 ` paramucho
2012-02-04 16:03 ` Bill Gunshannon
2012-02-04 16:39 ` paramucho
2012-02-03 10:48 ` paramucho
2012-02-03 11:24 ` Johnny Billquist
2012-02-04 17:06 ` paramucho
2012-02-04 18:22 ` paramucho
2012-02-04 18:55 ` Johnny Billquist
2012-02-04 19:13 ` Bill Gunshannon
2012-02-05 13:28 ` Johnny Billquist
2012-02-05 18:15 ` glen herrmannsfeldt
2012-02-04 18:51 ` Johnny Billquist
2012-02-04 23:09 ` glen herrmannsfeldt
2012-02-05 14:01 ` paramucho
2012-02-05 15:31 ` Johnny Billquist
2012-02-06 13:50 ` paramucho
2012-02-06 14:45 ` Johnny Billquist
2012-02-06 14:58 ` paramucho
2012-02-06 16:25 ` Johnny Billquist
2012-02-05 14:27 ` Johnny Billquist
2012-02-05 13:57 ` paramucho
2012-02-05 15:44 ` Johnny Billquist
2012-02-06 13:51 ` paramucho
2012-02-06 14:56 ` Johnny Billquist [this message]
2012-02-06 16:40 ` Johnny Billquist
2012-02-07 14:50 ` paramucho
2012-02-07 16:20 ` Johnny Billquist
2012-02-08 13:34 ` paramucho
2012-02-08 16:03 ` Johnny Billquist
2012-02-08 16:58 ` paramucho
2012-02-08 22:29 ` Johnny Billquist
2012-02-10 13:12 ` paramucho
2012-02-10 19:20 ` glen herrmannsfeldt
2012-02-11 13:12 ` paramucho
2012-02-11 20:06 ` glen herrmannsfeldt
2012-02-11 20:23 ` Johnny Billquist
2012-02-10 19:29 ` Johnny Billquist
2012-02-11 13:15 ` paramucho
2012-02-11 21:09 ` Johnny Billquist
2012-02-12 17:23 ` paramucho
2012-02-12 18:35 ` paramucho
2012-02-13 17:30 ` paramucho
2012-02-14 13:14 ` Johnny Billquist
2012-02-14 16:20 ` paramucho
2012-02-14 17:30 ` Johnny Billquist
2012-02-13 23:18 ` Johnny Billquist
2012-02-14 16:20 ` paramucho
2012-02-14 17:47 ` Johnny Billquist
2012-02-14 18:17 ` paramucho
2012-02-14 19:54 ` Johnny Billquist
2012-02-15 12:58 ` paramucho
2012-02-15 17:12 ` Johnny Billquist
2012-02-16 13:54 ` paramucho
2012-02-16 20:15 ` Johnny Billquist
2012-02-17 12:41 ` paramucho
2012-02-17 17:13 ` Johnny Billquist
2012-02-18 11:24 ` Johnny Billquist
2012-02-18 14:28 ` paramucho
2012-02-18 20:07 ` Johnny Billquist
2012-02-18 11:55 ` paramucho
2012-02-18 20:58 ` Johnny Billquist
2012-02-20 2:29 ` Jerome H. Fine
2012-02-20 5:54 ` paramucho
2012-02-20 17:14 ` Jerome H. Fine
2012-02-20 18:05 ` Johnny Billquist
2012-02-21 6:16 ` paramucho
2012-02-21 17:38 ` Jerome H. Fine
2012-02-21 19:31 ` Johnny Billquist
2012-02-20 5:53 ` paramucho
2012-02-20 10:28 ` Johnny Billquist
2012-02-21 3:33 ` Jerome H. Fine
2012-02-21 6:17 ` paramucho
2012-02-21 10:23 ` Johnny Billquist
2012-02-21 11:37 ` paramucho
2012-02-21 14:16 ` Johnny Billquist
2012-02-21 16:42 ` paramucho
2012-02-21 19:43 ` Johnny Billquist
2012-02-22 12:21 ` paramucho
2012-02-22 14:12 ` paramucho
2012-02-22 15:26 ` Johnny Billquist
2012-02-22 14:33 ` paramucho
2012-02-22 15:53 ` Johnny Billquist
2012-02-22 16:48 ` paramucho
2012-02-22 21:17 ` Johnny Billquist
2012-02-23 12:42 ` paramucho
2012-02-23 13:51 ` paramucho
2012-02-23 15:17 ` Johnny Billquist
2012-02-20 2:22 ` Jerome H. Fine
2012-02-20 6:07 ` paramucho
2012-02-21 3:29 ` Jerome H. Fine
2012-02-21 8:06 ` paramucho
2012-02-21 10:38 ` Johnny Billquist
2012-02-21 11:54 ` paramucho
2012-02-21 14:20 ` Johnny Billquist
2012-02-21 15:13 ` paramucho
2012-02-21 15:20 ` Johnny Billquist
2012-02-22 2:51 ` Jerome H. Fine
2012-02-22 6:37 ` paramucho
2012-01-18 11:20 ` Johnny Billquist
2012-01-26 3:21 ` Jerome H. Fine
2012-01-26 14:12 ` Johnny Billquist
2012-01-26 15:26 ` paramucho
2012-01-29 1:41 ` Jerome H. Fine
2012-01-29 2:04 ` Johnny Billquist
2012-01-29 2:31 ` Johnny Billquist
2012-01-29 1:39 ` Jerome H. Fine
2012-01-29 1:45 ` Johnny Billquist
2012-01-30 2:21 ` Bob Supnik
2012-01-31 7:14 ` paramucho
2012-01-31 9:42 ` Johnny Billquist
2012-01-31 14:24 ` Bill Gunshannon
2012-01-31 20:17 ` Johnny Billquist
2012-01-31 21:39 ` Bill Gunshannon
2012-01-31 23:43 ` glen herrmannsfeldt
2012-02-01 3:56 ` Jerome H. Fine
2012-02-01 11:53 ` Johnny Billquist
2012-02-01 13:48 ` paramucho
2012-02-02 0:20 ` Johnny Billquist
2012-02-02 2:22 ` Jerome H. Fine
2012-02-01 12:14 ` Johnny Billquist
2012-02-01 16:27 ` glen herrmannsfeldt
2012-02-01 5:28 ` Charles Richmond
2012-02-01 11:54 ` Johnny Billquist
2012-02-01 3:55 ` Jerome H. Fine
2012-02-01 11:22 ` paramucho
2012-02-01 12:03 ` Johnny Billquist
2012-02-01 3:54 ` Jerome H. Fine
2012-02-01 12:09 ` Johnny Billquist
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox