From 52e8c7f6f8e4d51e0d8a4a47876e69efdef8c84a Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 21 Jul 2018 02:22:26 -0700 Subject: [PATCH] UC15: Fix shared memory segment size parameter --- PDP11/pdp11_uc15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PDP11/pdp11_uc15.c b/PDP11/pdp11_uc15.c index 725bc072..1f4dfb83 100644 --- a/PDP11/pdp11_uc15.c +++ b/PDP11/pdp11_uc15.c @@ -394,7 +394,7 @@ ucb_buf = 0; CLR_INT (UCA); CLR_INT (UCB); 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) return r; uc15_shstate = (int32 *) basead;