From 77c9ca3f8a745404458a0a067ac1c2e9a37508bf Mon Sep 17 00:00:00 2001 From: cracyc Date: Fri, 21 Dec 2018 16:05:09 -0600 Subject: i386: fix esp after segment faults too (nw) --- src/devices/cpu/i386/i386op16.hxx | 2 +- src/devices/cpu/i386/i386op32.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/i386/i386op16.hxx b/src/devices/cpu/i386/i386op16.hxx index 71c4ff8f28e..cfaa9901dd5 100644 --- a/src/devices/cpu/i386/i386op16.hxx +++ b/src/devices/cpu/i386/i386op16.hxx @@ -1671,9 +1671,9 @@ void i386_device::i386_pop_rm16() // Opcode 0x8f if( modrm >= 0xc0 ) { STORE_RM16(modrm, value); } else { - ea = GetEA(modrm,1); try { + ea = GetEA(modrm,1); WRITE16(ea, value); } catch(uint64_t e) diff --git a/src/devices/cpu/i386/i386op32.hxx b/src/devices/cpu/i386/i386op32.hxx index 010cf91be58..0d5db177169 100644 --- a/src/devices/cpu/i386/i386op32.hxx +++ b/src/devices/cpu/i386/i386op32.hxx @@ -1524,9 +1524,9 @@ void i386_device::i386_pop_rm32() // Opcode 0x8f if( modrm >= 0xc0 ) { STORE_RM32(modrm, value); } else { - ea = GetEA(modrm,1); try { + ea = GetEA(modrm,1); WRITE32(ea, value); } catch(uint64_t e) -- cgit v1.2.3