Index: /trunk/src/VBox/Disassembler/testcase/tstDisasm-1.cpp
===================================================================
--- /trunk/src/VBox/Disassembler/testcase/tstDisasm-1.cpp	(revision 41796)
+++ /trunk/src/VBox/Disassembler/testcase/tstDisasm-1.cpp	(revision 41797)
@@ -76,4 +76,13 @@
 }
 
+
+static DECLCALLBACK(int) testReadBytes(PDISSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead)
+{
+    memcpy(&pDis->abInstr[offInstr], (void *)((uintptr_t)pDis->uInstrAddr + offInstr), cbMaxRead);
+    pDis->cbCachedInstr = offInstr + cbMaxRead;
+    return VINF_SUCCESS;
+}
+
+
 static void testPerformance(const char *pszSub, uint8_t const *pabInstrs, uintptr_t uEndPtr, DISCPUMODE enmDisCpuMode)
 {
@@ -89,5 +98,5 @@
             uint32_t    cb = 1;
             DISSTATE    Dis;
-            DISInstr(&pabInstrs[off], enmDisCpuMode, &Dis, &cb);
+            DISInstrWithReader((uintptr_t)&pabInstrs[off], enmDisCpuMode, testReadBytes, NULL, &Dis, &cb);
             off += cb;
         }
