From a2bc6a95089adbfdcdd1c4f2bb5fa915d4ae1aac Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 21 Jul 2018 03:01:11 -0700 Subject: [PATCH] UC15: Fix incorrect shared region size --- 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 e75cd72e..3bbe6b95 100644 --- a/PDP11/pdp11_uc15.c +++ b/PDP11/pdp11_uc15.c @@ -395,7 +395,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;