@Override
	public TraceMemoryState getViewportState(AddressRange range) {
		if (range.getAddressSpace().isRegisterSpace()) {
			return registers.getViewportState(range);
		}
		return memory.getViewportState(range);
	}
Construct a shim

@param memory the memory access shim
@param registers the regsiter access shim
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/pcode/exec/trace/data/DefaultPcodeTraceThreadAccess.java