1
0
mirror of https://github.com/wfjm/w11.git synced 2026-02-22 07:28:20 +00:00
Files
wfjm.w11/doc/w11a_known_differences.md
2022-08-15 09:42:27 +02:00

4.6 KiB

Summary of known differences and limitations for w11a CPU and systems

This file describes the differences and limitations of the w11 CPU and systems. The issues of the w11 CPU and systems are listed in a separate document README_known_issues.md.

Table of content

Known differences between w11a and KB11-C (11/70)

All four points relate to very 11/70 specific behavior, no operating system depends on them, therefore they are considered acceptable implementation differences.

Differences in unspecified behavior cases between w11a and KB11-C (11/70)

  • The state of the N and Z condition codes is different after a DIV overflow. The 1979 processor handbook states on page 75 that the state of the N and Z condition codes is unspecified when V=1 is set after a zero divide or an overflow condition. After a DIV overflow, the w11 returns Z=0 and N based on the sign of the full 32-bit result, as can be easily determined by xor'ing of the sign bits of dividend and divisor. This is also the most natural result, an overflow is certainly not zero, and the sign is unambiguously determined by the inputs. The SimH simulator also behaves like this. A real J11 and a real 11/70 can have N=0 even when dividend and divisor have opposite signs. And a real 11/70 can have Z=1. Bottom line is, that the w11 differs from the behavior of both the real 11/70 and the real J11 behavior.
  • the state of the result registers is also unspecified after a DIV with V=1. SimH and a real J11 never modify a register when V=1 is set. A real 11/70 and the w11 do, but under different conditions, and leave different values in the registers.
  • for gory details consult the divtst code and the log files for different systems in the data directory.

No software should depend on unspecified behavior of the CPU, therefore this is considered as acceptable implementation difference.

Known limitations

  • some programs use timing loops based on the execution speed of the original processors. This can lead to spurious timeouts, especially in old test programs.
    --> a 'CPU throttle mechanism' will be added in a future version to circumvent this for some old test codes.
  • the emulated I/O can lead to apparently slow device reaction times, especially when the server runs as a normal user process. This can lead to a timeout, again mostly in test programs.
    --> a 'watch dog' mechanism will be added in a future version which suspends the CPU when the server doesn't respond fast enough.