From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.73.229 with SMTP id o5mr17156642pbv.7.1328114321987; Wed, 01 Feb 2012 08:38:41 -0800 (PST) Path: lh20ni249047pbb.0!nntp.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: paramucho@hotmail.com (paramucho) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Wed, 01 Feb 2012 16:37:59 GMT Organization: Aioe.org NNTP Server Message-ID: <4f295de4.37789432@nntp.aioe.org> References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f175c07.15409279@nntp.aioe.org> <4f20c6e3$0$284$14726298@news.sunsite.dk> <4f215614.266356@nntp.aioe.org> <4f24a237$0$295$14726298@news.sunsite.dk> <4f2537ed.51306295@nntp.aioe.org> <4f28b73b$0$290$14726298@news.sunsite.dk> <4f291473.18988613@nntp.aioe.org> <4f2a3a1e.28631752@nntp.aioe.org> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: CmgvwL3sOlojnxUjt8znzA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 1.5/32.451 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Wed, 1 Feb 2012 09:43:36 -0500, stan wrote: >paramucho wrote: >> On Wed, 01 Feb 2012 12:48:42 +0100, Johnny Billquist >> wrote: >>>On 2012-02-01 12:22, paramucho wrote: >>>> On Tue, 31 Jan 2012 22:53:32 -0500, "Jerome H. Fine" >>>> wrote: >>>> >>>> > >>>I think a bigger reason that it's not ideal is that at least Bob Supnik >>>have the explicitly stated goal that it should not work. Any current >>>differences from the real machine are bugs, and are subject to be fixed >>>at any time, at which point the test wont work anymore. >> >> That's not exactly what was stated. Without wishing to put words into >> anyone's mouth, BobS wrote this: >> >> The model emulation in SimH is not perfect, which is why clever >> software can detect it. But the intent is to mimic real systems. >> SimH is not a "different" PDP11. >> >> And what I wrote earlier was this: >> >> The trick was to find some "undefined" behavior that didn't need >> correction. The code above gets different results from an F11 and a >> J11 as well as from SimH and E11. The test is far from ideal, but it >> works well enough for my purposes. >> >> My point being, that I'm not sure that the behavior I'm using needs to >> be "corrected" in the sense that I'm not sure it's actually "defined". >> I'm not even sure that the behavior I'm using can be corrected without >> a considerable effort. (One reason I'm not sure is that I wrote the >> code years ago and I've forgotten whether the result values could be >> computed or would need to be (at least partially) enumerated). > >Seems like a distinction without a difference. Changing behavior with >a purpose (correcting) and changing undefined behavior with or without >a purpose seems to have the same result. I would agree the risk of a >relatively mature simulator changing significantly seems acceptable, >but relying on undefined behavior is still building your house on >sand. > >In the back of my mind I have warning bells going off screaming "how >hard will this be to debug if the undefined behavior changes?" You raise an interesting distinction between real PDP-11s and emulated PDP-11s. The behavior, defined or undefined, of a real PDP-11 does not change. Thus, one might also claim that a goal of a emulator should be also be to remain constant. To follow your point to its logical conclusion would mean that I would have to simply give up on trying to detect an emulator in its standard deliverable form. I don't want to do that. Clearly, building my house on an error in defined behavior would be utterly ridiculous because, being a good citizen, I would simultaneously advise the author of an emulator of the error, which would usually lead to an alteration. Thus "risk" doesn't really apply here as failure is a near certainty. In the case of undefined behavior the situation changes: there is no compelling reason for undefined behavior to be altered unless such a change leads to a material improvement in the emulation, particularly when the emulator is mature. As to your screaming bells: no critical functionality currently relies on the outcome of the test. The only decision made on the basis of the test is whether or whether not to proceed with a further timing loop test, and that test also fails benignly. I would need to add further detection and sanity tests, or to be satisfied that the emulator would not change, before I would rely on the functionality significantly. I am currently considering basing one bit of functionality on the E11 and SimH tests and that's to use a WAIT instruction to reduce CPU hogging. But I would consider that change to be non-critical (after the appropriate testing). By way of comparison, I also do a detection test for the V11 emulator using the V11 emulator API (based on an instruction, not a device :-). That test is definitive and does lead to altered behavior of the system. Thus, the current E11/SimH detection functionality is largely exploratory and envisaged as long-term settling-in process. One value of the tests is to raise the issue that we are discussing in this thread: should emulators be detectable or not. Clearly, I think that they should be, but I accept that those who see emulators entirely as historical vehicles would have another opinion. Ian