From 1a877cef871bc53a9e84ab6ceb23517d24a0b6ac Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 18 Sep 2024 19:20:34 +0200 Subject: [PATCH] T3100E: Set memory state of the 384 kB immediately above the top of RAM to read/write internal, allows the remapping of the upper 384k to the top of RAM to actually work, fixes #4809. --- src/machine/m_at_t3100e.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/machine/m_at_t3100e.c b/src/machine/m_at_t3100e.c index 357f012f2..3c83b0cce 100644 --- a/src/machine/m_at_t3100e.c +++ b/src/machine/m_at_t3100e.c @@ -850,6 +850,9 @@ machine_at_t3100e_init(const machine_t *model) NULL, MEM_MAPPING_INTERNAL, &t3100e_ems); mem_mapping_disable(&t3100e_ems.upper_mapping); + if (mem_size < (16384 - 448)) + mem_set_mem_state_both(mem_size * 1024, 384 * 1024, MEM_READ_INTERNAL | MEM_WRITE_INTERNAL); + device_add(&t3100e_device); return ret;