summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/i386/pentops.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/i386/pentops.hxx')
-rw-r--r--src/devices/cpu/i386/pentops.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/i386/pentops.hxx b/src/devices/cpu/i386/pentops.hxx
index 42d3958cd0a..28b469b21c2 100644
--- a/src/devices/cpu/i386/pentops.hxx
+++ b/src/devices/cpu/i386/pentops.hxx
@@ -166,7 +166,7 @@ void i386_device::pentium_rsm()
m_CPL = (m_sreg[SS].flags >> 13) & 3; // cpl == dpl of ss
- for(int i = 0; i < GS; i++)
+ for(int i = 0; i <= GS; i++)
{
if(PROTECTED_MODE && !V8086_MODE)
{