From 4ff1b165d007c50c0c4700eb8ecafa1e700bc7aa Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Thu, 15 Dec 2016 13:14:41 -0500 Subject: [PATCH] syscall_emul: extend sysinfo system call to include mem_unit --- src/sim/syscall_emul.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index c11e9865f..53da9197b 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -775,8 +775,9 @@ sysinfoFunc(SyscallDesc *desc, int callnum, LiveProcess *process, TypedBufferArg 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()); -- 2.30.2