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.74.201 with SMTP id w9mr15256013pbv.0.1328053397806; Tue, 31 Jan 2012 15:43:17 -0800 (PST) MIME-Version: 1.0 Path: lh20ni246485pbb.0!nntp.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!news2.euro.net!news.mixmin.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: Tue, 31 Jan 2012 23:43:15 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f279487.20502493@nntp.aioe.org> <9oqbt8F9ipU1@mid.individual.net> <9or5ceFo2dU1@mid.individual.net> 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 Bill Gunshannon wrote: > In article , > Johnny Billquist writes: (snip) > Yeah, I know... >> But I guess it depends on what the purpose of that thing >> should be. Just a way to identify a machine, > Maybe I just came in late, but that's what I thought people wanted. >> or a way to identify a >> machine running under E11/Simh/whatever. > But isn't the inability to tell you are running on an emulator the > true proof that the emulator works? I suppose, but even in real processors there are leaks. Maybe instead, doing things that you would normally do on a real processor, you shouldn't be able to tell. I haven't followed the PDP-11 differences so well, but I remember some of the intel ones. The 8086 has a six-byte prefetch queue, such that self modifying code must modify far enough ahead that it hasn't been fetched yet. That is part of the 8086 definition. The 8088, which came later, only has a four byte prefetch queue. By careful self-modification, I believe using a sequence defined by intel, one can tell them apart. If intel was careful to leave such modification undefined for the 8086, then legal 8086 code, expecting a specific result, could never execute that sequence. On the other hand, there is a mistake in the 68020, preventing one from generating virtual machines. That is, running virtual machines in user mode, while trapping and simulating privileged instructions. In the 68020 user mode, one can examine the flag bit indicating user/supervisor mode, such that it would give the wrong value. The flag bit is defined to be user readable, such that legal programs could depend on it. (An OS might use it to check what mode a routine is being executed in.) (snip) > Again, I think I came in late but I thought someone was looking for > a way to query a machine about what processor it had. Ah for the > days of having software accesable front panel switches. :-) >> I can, just for curiositys sake, understand that you might want to find >> out if you are running under Simh or whatever. But then you need to do >> something in Simh which is not possibly under any existing other machine. > See my comment above!! If there is anythjing in the emulator that is not > the same as the real thing, then the emulator needs to be fixed. So the 8088 is a broken 8086? Again, if anything is not the same, and is defined to be legal on the real machine, then it needs to be fixed. >> As an extension to this, you could also add new features, which would be >> used when identified as such a machine, but this seems unlikely in general. > But I think new features belongs in the fork mentioned above. The OS/2 emulation of DOS (in 1.0) and Windows (in later versions) allowed for some specific differences. One of the favorite things to do in emulated systems is allow I/O outside the emulation. OS/2, at some point, allowed for a special device driver that would only run in virtual machines. That allows, at least, faster I/O instead of complete emulation of the I/O sequence. It also allows, if I remember, long file names that DOS otherwise wouldn't allow. Exactly what would happen if you ran that outside OS/2, I don't know. -- glen