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.190.99 with SMTP id gp3mr1488034pbc.1.1327587151464; Thu, 26 Jan 2012 06:12:31 -0800 (PST) Path: lh20ni226306pbb.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Thu, 26 Jan 2012 15:12:29 +0100 Organization: Update Computer Club Message-ID: References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f20c6ac$0$285$14726298@news.sunsite.dk> NNTP-Posting-Host: 2620:0:105f:b:462a:60ff:fefb:aad8 Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1327587150 23287 2620:0:105f:b:462a:60ff:fefb:aad8 (26 Jan 2012 14:12:30 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Thu, 26 Jan 2012 14:12:30 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: <4f20c6ac$0$285$14726298@news.sunsite.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-01-26 04.21, Jerome H. Fine wrote: > >Johnny Billquist wrote: >> I'm not entirely sure what your question is, Jerome... >> But I'll make some comments anyway. > Very much appreciated. I was away for a week. I am catching up now. >> On 2012-01-15 15:37, Jerome H. Fine wrote: >>> I have an interesting hardware question. >>> >>> I have been looking at the results for the program RESORC.SAV in RT-11 >>> with respect the MFPT instruction. When the J11 chip is used, the value >>> is 5 and the Maintenance Register at 177750 seems to determine what the >>> rest of the actual hardware supports. >> Correct. >>> I thought it would also be helpful for the user to know if an >>> emulator is being >>> used, either software or hardware, or if perhaps some other 3rd party >>> hardware >>> CPU. I would probably target the various 3rd party boards as far as >>> hardware >>> is concerned (such as QED and Mentec). For software emulators, I would >>> suggest that only the high end PDP-11 processors be supported (the DEC >>> CPUs which support the MFPT instruction) in order to keep things simple, >>> at least initially. >> If an emulator wants to truly emulate a specific CPU, then you cannot >> just go and change the behavior of the emulator, since you will break >> the basic idea behind it. >> As far as different implementations goes, what is the difference >> between an emulator and a "real" CPU? Both are running code to >> implement the PDP-11 architecture. It's just that if the emulator is >> running on an x86 (for example), the microcode happens to be identical >> to x86 assembler, whilst the J11 (for example) have a microcode CPU >> which we don't know much about, but it still executes the microcode >> instructions... > I actually agree with you. The only reason that I mention the > MFPT instruction is that RT-11 ignores the high order byte > and I thought that I would ask if RSX-11 also ignores the > high order byte, along perhaps with RSTS/E. The fact that some code ignore parts of the returned value is not a good enough reason to abuse it. There might be userland code which also use MFPT, and might react badly if you change this. Not to mention other OSes, all of which we might not even know of. If you (supposedly) emulate a J11 CPU, you *must* return the same value as a real J11, or else you are not in fact emulating a J11 CPU. Now, admittedly, sometimes it might be necessary to break the mold for various reasons, but let's do that in a less intrusive way. >>> An incomplete list of software emulators is: >>> SIMH >>> Ersatz-11 >>> >>> An incomplete list of hardware boards is: >>> QED - more than 1? >>> Mentec - at least 3 >>> and I can remember at least 2 others, but not the company names. >> You have Strobe Data, which I'm sure you'll remember now that I >> mention them. > Yes. I seem to remember they were first. Do you classify them as > a hardware or software emulator? If my hazy memory is correct, > Strobe Data initially used the J11 chip on a board that plugged > into an ISA slot on a DOS machine. Later, the J11 chips were > very difficult to obtain, so Strobe Data managed to do something > else. I wouldn't call any of their implementations an emulator. It's a PDP-11. I'm not even sure what the point is in trying to make the distinction between a "hardware" and a "software" emulator. As I points out at another place, all PDP-11s except for the PDP-11/20 are implemented using microcode. So, in short, it is all done in software. The actual instructions performed by the hardware have little to no resemblance to a PDP-11 instruction. Be that the microcode engine in the J11 CPU, or the x86 underlying the E11. Try to think of x86 instructions as microcode for the E11 CPU, if that helps. > When I first saw the emulation actually running RT-11, I was very > surprised. > > Does anyone know how many boards and the names that > QED and Mentec produced. Also, does the name Nissho > ring a bell? I think they were a Unibus hardware emulator > or were they just high speed memory? I don't have any complete lists. >>> Right now the Logical Co. has a combined emulator called a >>> PDQ-1000 board which actually plugs into a Qbus which takes >>> only 4 slots, but includes CPU, memory and many controllers. >> Yes... And...? > The reason that I specifically mention the PDQ-1000 is that while > it seems like a hardware emulator (since the final result is a Qbus > board), inside the hardware is actually a software emulator. And what is the difference? The J11 is also a software implementation. >>> Can anyone who has a DEC (or non-DEC) PDP-11 system easily >>> available determine the actual value returned by the MFPT instruction? >>> As far as I know: >>> >>> MFPT Value Hardware >>> 1 PDP-11/44 >>> 3 PDP-11/24 (should be 2) >>> 3 PDP-11/23 >>> 4 SBC-11/21 >>> 5 All J11 chips including 11/73, 11/83, 11/93 >> That is all the values that MFPT can return. (Or rather - all the >> values that were returned by any CPUs designed by DEC.) > Understood. It would have been "nice" if DEC had supported > a more open concept, but since probably at least 50% (maybe > over 90%) of the emulators in use are SIMH and Ersatz-11, > it is probably not all that important any more. It's not that DEC didn't design an open concept. But what is the point of defining new values for MFPT. We could do that. Let's for instance say that E11 should return 6 for MFPT. That would be perfectly valid. We could then decide what CPU options and capabilities would be implied by this value. The problem, however, is that no current software will recognize this. So we need to adjust all OSes, as well as other software that use this information, to get things right. That is where the problem is. And that is why E11 instead tries to emulate existing CPUs truthfully, so that existing software will work right. That includes implementing all the bugs for the individual CPU as well. Software might depend on it. What you then might seek is a middle ground. Let's make the system act just like an existing machine made by DEC, but let's make additional features available to code that actually can figure out that this is not a normal 11/93 (or whatever). That is the point when you hit the problem that you need to truthfully emulate an 11/93, but still need to do something that is incompatible with an 11/93. So, what is the least intrusive incompatibility you can think of. I say it is having an undefined instruction (which in all likelyhood no existing program would be using anyway) actually not trap, but instead do something. >>> I assume that it would be extremely difficult, probably not worth the >>> effort, to modify the high order byte of the MFPT instruction at this >>> point for the 3rd party PDP-11 CPU boards, such as from Mentec. >> Some Mentec boards use a J11. You can guess what they return. For the >> other boards, they also seem to pretend to be J11 CPUs, which is a bit >> sad, but that can't be helped. > And of course, the result is that they reported a particular DEC > CPU as being used. What were the names of all of the Mentec > boards and their primary difference from each other? The ones I can think off are the M70, M100, M11. M70 uses a J11. M11 uses Mentecs own FPGA implementation. The M11 have a TOY clock, but it is not compatible with the 11/9x TOY. Also, the M11 adds one more instruction not existing in the J11, namely MOVR, which is a block move instruction. Takes three registers as arguments. Source address, destination address and length. There are more CPUs by Mentec, and possibly also other features/differences between them that I don't know of. >>> Can anyone comment on this assumption? Might there be another >>> way for hardware to the tell a user which 3rd party board is being >>> used as a PDP-11? >> Please differ between which *board* is being used, as opposed to which >> CPU. MFPT will only tell you which CPU is used, not which board. > Yes, you are correct. Even DEC used the J11 chip > on many different boards. > > I have the impression that it would no longer be either > useful or reasonable to attempt to identify any Mentec > or QED boards at this point. Existing code already identify Mentec boards. Not surprising, considering that Mentec owned the major OSes for a while. QED processors looks like DEC ones as far as OSes are concerned. >> If you want some "foolproof" way of detecting that you are inside an >> emulated machine, I'd say that adding a new instruction from the >> unused opcodes is probably a better idea. I wouldn't expect anything >> to actually try using an undefined opcode anyway, so no existing code >> should be hurt by it. And your "new" code will also work on real >> machines, in that you will instead get a trap if you try that instruction. > Your suggestion to use an instruction code which is presently > illegal is actually almost trivial in Ersatz-11. John Wilson explicitly > supports adding code for new instructions. Well, I guess it > is not exactly trivial, but I could probably write and test the > code for the required DLL in less than a week. > > I imagine the same would apply to SIMH. it would be useful > if there could be an agreement on a standard!!!!!!!!!!!!! > > Other emulators or 3rd party hardware implementations which > are no longer supported by their original manufacturers would be > much more difficult, if not impossible, at this point. > > What about RUST? Could that support a new instruction as well? Already answered by Ian. And yes, in short, adding a new instruction in any emulator is trivial. There is no standard. We might try to make a suggestion. But that's all we could do. Johnny