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.129.169 with SMTP id nx9mr13461724pbb.8.1326890470715; Wed, 18 Jan 2012 04:41:10 -0800 (PST) MIME-Version: 1.0 Path: lh20ni195979pbb.0!nntp.google.com!news1.google.com!eweka.nl!feeder.eweka.nl!62.179.104.142.MISMATCH!amsnews11.chello.com!txtfeed2.tudelft.nl!tudelft.nl!txtfeed1.tudelft.nl!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!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: Wed, 18 Jan 2012 12:41:06 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f175c07.15409279@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: > On Sun, 15 Jan 2012 09:37:21 -0500, "Jerome H. Fine" (snip) >>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. (snip) > Modifying the MFPT instruction is not the right way to go. CPU > software detection is a delicate business and that process should not > be interfered with directly. > In any case, an emulator is not equivalent to a processor type since > SimH and E11 support a range of PDP-11 CPUs. For VM/370, IBM's first try at software emulation (more or less) of S/370, they use bits from STIDP, which stores the processor serial number, to identify running under emulation. That is, of course, a convention as the emulator can return any specified value. (It also returns the processor model number which, again, can have any value under emulation.) In addition, there is one instruction, diagnose (with no assembler mnemonic) that is defined to be system dependent. That instruction is then used for communication between guest systems and CP (the emulator). I don't know if there is anything equivalent for the PDP-11 to either STIDP or diagnose. > Some CPU software detection is handled by examining CPU behavior. The > same process can be used to detect an emulator and to determine which > emulator is being used. (snip) > In fact, the V11 emulator has a little API which is used to pass > information between the emulator and the system. It's used to > relinquish control so that the emulator doesn't hog all the CPU time > and for various other functions. This is one case where VM has it easy. S/370 processors don't use an idle loop, but a wait state where they stop executing instructions. As I understand it, when IBM leased processors, they had a usage meter such that one would pay based on how much the processor was used. The usage meter stops in the wait state. > It would be great if there was a > common API for PDP-11 emulators for this kind of thing, but I'm not > sure the motivation is there for the effort involved. -- glen