Fixed missing vitual address calulation in writemem, now devmem2 module works as...
authorDaniel Giritzer <daniel@giritzer.eu>
Fri, 2 Jun 2017 19:36:14 +0000 (21:36 +0200)
committerDaniel Giritzer <daniel@giritzer.eu>
Fri, 2 Jun 2017 19:36:14 +0000 (21:36 +0200)
src/devmem2.c

index cd33ceb..b29a299 100644 (file)
@@ -78,6 +78,7 @@ int writemem(char* address, char* value, int access_type)
     }
 
 
     }
 
 
+    virt_addr = map_base + (target & MAP_MASK);
     writeval = strtoul(value, 0, 0);
     switch(access_type)
     {
     writeval = strtoul(value, 0, 0);
     switch(access_type)
     {