summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2018-12-21 16:05:09 -0600
committer cracyc <cracyc@users.noreply.github.com>2018-12-21 16:05:09 -0600
commit77c9ca3f8a745404458a0a067ac1c2e9a37508bf (patch)
tree344f31a1d23f7d083b933474ca73ecf0dd884271
parent48c68850169a56f581f93e7d793b52a508a6a7c1 (diff)
i386: fix esp after segment faults too (nw)
-rw-r--r--src/devices/cpu/i386/i386op16.hxx2
-rw-r--r--src/devices/cpu/i386/i386op32.hxx2
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)