mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 15:27:46 +00:00
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
@ -1013,6 +1013,8 @@ t_stat cr_wr ( int32 data,
|
||||
int32 PA,
|
||||
int32 access )
|
||||
{
|
||||
int curr_crs = crs; /* Save current crs to recover status */
|
||||
|
||||
switch ((PA >> 1) & 03) {
|
||||
case 0:
|
||||
if (CR11_CTL(&cr_unit)) {
|
||||
@ -1024,7 +1026,6 @@ t_stat cr_wr ( int32 data,
|
||||
data = (crs & ~0377) | (data & 0377);
|
||||
if (!(data & CSR_IE))
|
||||
CLR_INT (CR);
|
||||
int curr_crs = crs; /* Save current crs to recover status */
|
||||
crs = (crs & ~CRCSR_RW) | (data & CRCSR_RW);
|
||||
/* Clear status bits after CSR load */
|
||||
crs &= ~(CSR_ERR | CRCSR_ONLINE | CRCSR_CRDDONE | CRCSR_TIMERR);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user