UC15: Fix shared memory segment size parameter

This commit is contained in:
Mark Pizzolato 2018-07-21 02:22:26 -07:00
parent a541aa2c46
commit 52e8c7f6f8

View file

@ -394,7 +394,7 @@ ucb_buf = 0;
CLR_INT (UCA); CLR_INT (UCA);
CLR_INT (UCB); CLR_INT (UCB);
if (uc15_shmem == NULL) { /* allocate shared state */ if (uc15_shmem == NULL) { /* allocate shared state */
r = sim_shmem_open ("UC15SharedState", UC15_STATE_SIZE, &uc15_shmem, &basead); r = sim_shmem_open ("UC15SharedState", UC15_STATE_SIZE * sizeof (int32), &uc15_shmem, &basead);
if (r != SCPE_OK) if (r != SCPE_OK)
return r; return r;
uc15_shstate = (int32 *) basead; uc15_shstate = (int32 *) basead;