From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: ffc31,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidf4c4f7386e,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.238.198 with SMTP id vm6mr2849006pbc.3.1328209670071; Thu, 02 Feb 2012 11:07:50 -0800 (PST) MIME-Version: 1.0 Path: lh20ni253108pbb.0!nntp.google.com!news2.google.com!goblin3!goblin1!goblin.stu.neva.ru!news.tornevall.net!aioe.org!.POSTED!not-for-mail From: glen herrmannsfeldt Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Thu, 2 Feb 2012 19:07:44 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: 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> NNTP-Posting-Host: H0vc4U5LIRkRHNPyGCs2dA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 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. Many smaller processors weren't so good at testing for illegal opcodes, or other bit combinations not specified to work. I believe many of the auto-increment and autodecrement operations on PC were defined for the PDP-11, but maybe not all of them. Many are illegal on VAX, and I believe tested for. I would not be surprised to see some of the undefined ones for the PDP-11 turn out not to be deterministic. > But to take your point that an emulation could avoid "undefined" > architecture states 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. > 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. (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. > One of the key strengths of SimH is its portability across different > systems, and in to the future since it sticks pretty much to > straightforward C code. This portability may well be one reason that > SimH doesn't mimic asynchronous I/O. There are always trade-offs. > The emulations are not exact or complete and it would be unrealistic > to expect them to be and they're only as good as the testing they've > had. There is always going to be a gap between the emulation and the > original. Some of the behavior that lies in the gap is worth fixing, > some behavior isn't. That's true of most software. Emulators are no > different. (snip) >>I think the aim of Simh is that there shouldn't be a way. When there is >>a way, the emulation have failed. > I think it is accepted that there will always be a gap between the > emulation and the original. I don't think the emulations aim at being > utterly exact. Life is too short. To quote BobS again: > The model emulation in SimH is not perfect, which is why clever > software can detect it. > The presence of a gap doesn't mean that an emulation has failed. In > any case SimH and E11 are quite amazing, with or without gaps. -- glen