Looking at my own memory access code(3 layers), there's 3 kinds of memory accesses(and layers to travel through. Layer 3 through 1 is the normal data path during valid mapped RAM accesses using Segment:Offset accessing):
1. Actual RAM addresses(non-memory mapped device only, so actual emulated RAM. Doesn't log for memory holes. Uses memory access descriptor type -1(The segment descriptors are all type >=0)). These are logged as "Reading/writing to/from RAM: %08X=%02X (%c)".
2. Paged RAM addresses(including memory-mapped devices). Uses memory access descriptor type -2(Used for anything requiring paging, but not paging translation itself. So this is used for anything by the CPU through Paging. So all normal segment:offset memory addresses and things needing paging(descriptor cache loads, interrupt vectors etc.)). This layer doesn't log anything.
3. Normal MMU accesses. These are the actual Segment:Offset addresses normally used for most operations(instruction fetches, memory fetching using segment:offset, memory writes using segment:offset).
Currently, two data types are logged: data written to and read from RAM itself(Layer 1) and data written to and read from all hardware(Between layer1 and any other higher layers, logging as "Read from memory: %08X=%02X (%c)" and "Writing to memory: %08X=%02X (%c)". Read logging at this level only applies to normal memory accesses currently(so no opcode fetches are logged at this level)).
Since the opcodes aren't all logged(read from RAM itself), could this mean that it's somehow reading from MMIO devices?
Looking at the logs(looking at the MMU read/write cycles), it looks like it's actually reading data from the hardware(reading two bytes, then writing two bytes), but it doesn't log the actual access to/from RAM in any way?
Edit: I've just modified the MMU to also log memory accesses that are opcode fetches. But it's still strange as to why the POPW accesses disappear from the logs. This shouldn't be the case(at least both logs should be there).
Edit: I've just implemented logging at the Paging and Normal layers. So any kind of access from the BIU will be logged now. I'm starting 8088 MPH now...