Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PDP11: Fix RS device address window size and propagate that through t…
…o RH As discussed in #396
- Loading branch information
Showing
4 changed files
with
34 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bce72b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some further testing, it seems that there may be some undesired side-effects of this change.
The following output is directly after starting pdp11 without an .ini file:
Note that after re-enabling RP, the RHA address range has been lost. The line of code at 852 in pdp11_rh.c dibp->ulnt = dibp->lnt = 0; breaks the ability to disable and re-enable Massbus devices. Commenting out this line seems to fix the issue. Moving Massbus devices to different controllers still works with this line commented out.
It is also possible that you wanted to say '=ulnt' instead of '=lnt' in line 926. It seems to work either way, so it may be moot. Before the change, ulnt was set the same as lnt directly in the mba dibs - but this may have been unnecessary.
bce72b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. Good Catch.
Please make the fixes you've outlined and generate a pull request to get it merged.
Thanks.