Fix single-step trap flag setting
This commit is contained in:
@@ -276,7 +276,7 @@ exec386_2386(int32_t cycs)
|
||||
#endif
|
||||
opcode = fetchdat & 0xFF;
|
||||
fetchdat >>= 8;
|
||||
trap = cpu_state.flags & T_FLAG;
|
||||
trap |= !!(cpu_state.flags & T_FLAG);
|
||||
|
||||
cpu_state.pc++;
|
||||
x86_opcodes[(opcode | cpu_state.op32) & 0x3ff](fetchdat);
|
||||
|
@@ -300,7 +300,7 @@ exec386_dynarec_int(void)
|
||||
opcode = fetchdat & 0xFF;
|
||||
fetchdat >>= 8;
|
||||
|
||||
trap |= cpu_state.flags & T_FLAG;
|
||||
trap |= !!(cpu_state.flags & T_FLAG);
|
||||
|
||||
cpu_state.pc++;
|
||||
x86_opcodes[(opcode | cpu_state.op32) & 0x3ff](fetchdat);
|
||||
@@ -871,7 +871,7 @@ exec386(int32_t cycs)
|
||||
#endif
|
||||
opcode = fetchdat & 0xFF;
|
||||
fetchdat >>= 8;
|
||||
trap |= cpu_state.flags & T_FLAG;
|
||||
trap |= !!(cpu_state.flags & T_FLAG);
|
||||
|
||||
cpu_state.pc++;
|
||||
x86_opcodes[(opcode | cpu_state.op32) & 0x3ff](fetchdat);
|
||||
|
3
src/io.c
3
src/io.c
@@ -287,9 +287,6 @@ io_debug_check_addr(uint16_t addr)
|
||||
int i = 0;
|
||||
int set_trap = 0;
|
||||
|
||||
if (trap == 4)
|
||||
return; /* Debug trap already pending. */
|
||||
|
||||
if (!(dr[7] & 0xFF))
|
||||
return;
|
||||
|
||||
|
@@ -168,9 +168,6 @@ mem_debug_check_addr(uint32_t addr, int write)
|
||||
int i = 0;
|
||||
int set_trap = 0;
|
||||
|
||||
if (trap == 4)
|
||||
return; /* Debug trap already pending. */
|
||||
|
||||
if (!(dr[7] & 0xFF))
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user