PDP10, PDP11, VAX: Fix compile error due to C++ variable declaration being used instead of C.
This commit is contained in:
parent
9022de500d
commit
a100c88f1d
1 changed files with 2 additions and 1 deletions
|
@ -1013,6 +1013,8 @@ t_stat cr_wr ( int32 data,
|
||||||
int32 PA,
|
int32 PA,
|
||||||
int32 access )
|
int32 access )
|
||||||
{
|
{
|
||||||
|
int curr_crs = crs; /* Save current crs to recover status */
|
||||||
|
|
||||||
switch ((PA >> 1) & 03) {
|
switch ((PA >> 1) & 03) {
|
||||||
case 0:
|
case 0:
|
||||||
if (CR11_CTL(&cr_unit)) {
|
if (CR11_CTL(&cr_unit)) {
|
||||||
|
@ -1024,7 +1026,6 @@ t_stat cr_wr ( int32 data,
|
||||||
data = (crs & ~0377) | (data & 0377);
|
data = (crs & ~0377) | (data & 0377);
|
||||||
if (!(data & CSR_IE))
|
if (!(data & CSR_IE))
|
||||||
CLR_INT (CR);
|
CLR_INT (CR);
|
||||||
int curr_crs = crs; /* Save current crs to recover status */
|
|
||||||
crs = (crs & ~CRCSR_RW) | (data & CRCSR_RW);
|
crs = (crs & ~CRCSR_RW) | (data & CRCSR_RW);
|
||||||
/* Clear status bits after CSR load */
|
/* Clear status bits after CSR load */
|
||||||
crs &= ~(CSR_ERR | CRCSR_ONLINE | CRCSR_CRDDONE | CRCSR_TIMERR);
|
crs &= ~(CSR_ERR | CRCSR_ONLINE | CRCSR_CRDDONE | CRCSR_TIMERR);
|
||||||
|
|
Loading…
Add table
Reference in a new issue