syscall_emul: extend sysinfo system call to include mem_unit
authorBrandon Potter <brandon.potter@amd.com>
Thu, 15 Dec 2016 18:14:41 +0000 (13:14 -0500)
committerBrandon Potter <brandon.potter@amd.com>
Thu, 15 Dec 2016 18:14:41 +0000 (13:14 -0500)
src/sim/syscall_emul.hh

index c11e9865f2c1a538d339d7bbccb08a228d58a5a7..53da9197b7b0c6116fd5e467f9bcc4e22aee420d 100644 (file)
@@ -775,8 +775,9 @@ sysinfoFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
     TypedBufferArg<typename OS::tgt_sysinfo>
         sysinfo(process->getSyscallArg(tc, index));
 
-    sysinfo->uptime=seconds_since_epoch;
-    sysinfo->totalram=process->system->memSize();
+    sysinfo->uptime = seconds_since_epoch;
+    sysinfo->totalram = process->system->memSize();
+    sysinfo->mem_unit = 1;
 
     sysinfo.copyOut(tc->getMemProxy());