>glen herrmannsfeldt wrote:
(snip, someone wrote)
  
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, someone else wrote)
  
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.
Also right. And each CPU behaves differently, and the emulator needs to 
follow that, or it is broken.
Or, the emulator can emulate a CPU model different from any previously
built. That usually at least happens in that the emulator runs at a
different speed than any real processor.
  
My suggestion would be to treat the speed difference
separately from the CPU and board being emulated.
NOTE that with Ersatz-11, it is almost trivial to
specify a particular CPU and board which was
NEVER produced.

As for the speed difference, that aspect seems quite
important since it is possible for Ersatz-11 to run
RT-11 at a speed which is more than 100 times
the speed of a DEC  PDP-11/93 and that is just
the CPU speed.  The disk I/O can easily be more
than 200 times the speed of any disk drive which
was available on a real DEC  PDP-11/93.
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.
Right. I just posted an outline of how RSX-11M+ detects system type. 
It's a combination of available information as well as CPU behavior in 
very weird and possibly not documented ways.
I have seen the rules for detecting different x86 CPUs, from 8086 and
8088 on up. Some are pretty strange, though usually documented at least
as needed for detection.
As has been pointed out, however, an emulator
like Ersatz-11 or SIMH actually emulates MANY
different CPUs and boards.  So the suggestion
that Johnny made to use a new CPU instruction
does seem very helpful.  Does anyone else agree?
What sort of standards might be helpful to use?

Jerome Fine