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.74.201 with SMTP id w9mr4531685pbv.0.1328266117951; Fri, 03 Feb 2012 02:48:37 -0800 (PST) Path: lh20ni255507pbb.0!nntp.google.com!news2.google.com!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: Fri, 03 Feb 2012 10:48:29 GMT Organization: Aioe.org NNTP Server Message-ID: <4f2bb930.33011886@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> <4f2a8c5a.52418379@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 Thu, 2 Feb 2012 19:07:44 +0000 (UTC), glen herrmannsfeldt wrote: >In vmsnet.pdp-11 paramucho wrote: > >(snip) > >> I have been using "undefined" in the architectural sense, that is, >> behavior which is not specified by the *architecture* or explicitly >> specified as "undefined". That's fairly well-known terminology. > >> Clearly, there can be *no* undefined *implementation* behavior and >> thus the distinction between "defined" and "undefined" is meaningless >> if applied to the implementation. > >I am not convinced. It might be, for example, that conditions >not specified could expose logic race conditions that would not >be seen using only the specified operations. Yes, and I meant to say something similar below when I wrote: but unspecified implementation behavior can potentially be tied to any machine state We had a related case here recently. RSX systems utilize an unused word in the DOS magtape header for the last three characters of a file name (in Rad50). XXDP treats the last word as "don't care" uses the last word of the buffer as an internal counter (which happens to accumulate the total number of data blocks written). Thus RSX listings of XXDP-created DOS magtapes have seemingly nonsense endings added to their filenames. >> But to take your point that an emulation could avoid "undefined" >> architectures by referring to "unspecified implementation >> behavior" I'd make two arguments. > >> First, "unspecified implementation behavior" can be significantly more >> difficult to emulate. An *architectural definition* will usually >> propose relatively simple deterministic algorithms, explicitly or >> implicitly, but unspecified implementation behavior can potentially be >> tied to any machine state. It might be necessary to run extensive >> tests on many different CPU types just to work out what the behavior >> is. In some cases it simply won't be worth the effort. > >I believe that throughout history there have been a number >of cases where emulators had to emulate bugs in the original >machine. In some, the documentation was wrong and users >expected software that depended on those bugs to work. We've been working around propagated bugs in our systems for millions of years... >> Second, I don't think that emulator authors are as strict as you >> imply. For example, consider the following "programming difference" >> from one of the J11 architecture documents: > >> 30. If a register contains an odd value in mode 2 and a [11/73] >> bus error occurs, the register will be incremented > >> If a register contains an odd value in mode 2 and a [11/34] >> bus error occurs, the register will be unchanged. > >> SimH gets it right for its default J11 CPU, where it increments >> and wrong for an 11/34, where it should be unchanged. E11 is the other >> way around: right for its default 11/34 CPU, where it's unchanged and >> wrong for the J11 where it should increment. Now these are examples of >> incorrect implementation differences (that I would never rely on for a >> detection test), however, there's no screaming need for SimH or E11 to >> fix them. > >There might be if there were system test programs that tested >for those cases. When processors were less reliable, the need >to test that one performed to specifications was important. All software systems are based on the "good enough" principle. You stop developing when the response is that system is "good enough". >(snip) >> Neither SimH or E11 attempt to mimic the instruction times of the >> original computers. Does this represent a failure? There is at least >> one gaming PDP-11 emulation which does mimic the instruction times. >> As noted, the emulators don't mimic the typical speeds of PDP-11 >> terminals either. That was fixed behavior I could rely on a real >> PDP-11. > >Certainly that has been a problem for games on emulated >systems, or even real systems, for many years. Ian