diff options
Diffstat (limited to 'src/devices/cpu/i386/i386ops.hxx')
-rw-r--r-- | src/devices/cpu/i386/i386ops.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/i386/i386ops.hxx b/src/devices/cpu/i386/i386ops.hxx index 1d00ac21566..5940b2b401c 100644 --- a/src/devices/cpu/i386/i386ops.hxx +++ b/src/devices/cpu/i386/i386ops.hxx @@ -2559,7 +2559,7 @@ void i386_device::i386_loadall() // Opcode 0x0f 0x07 (0x0f 0x05 on 80286), m_sreg[ES].limit = READ32(ea + 0xc8); m_CPL = (m_sreg[SS].flags >> 5) & 3; // cpl == dpl of ss - for(int i = 0; i < GS; i++) + for(int i = 0; i <= GS; i++) { m_sreg[i].valid = (m_sreg[i].flags & 0x80) ? true : false; m_sreg[i].d = (m_sreg[i].flags & 0x4000) ? 1 : 0; |