diff options
author | Brandon Potter <brandon.potter@amd.com> | 2016-12-15 13:14:41 -0500 |
---|---|---|
committer | Brandon Potter <brandon.potter@amd.com> | 2016-12-15 13:14:41 -0500 |
commit | 4ff1b165d007c50c0c4700eb8ecafa1e700bc7aa (patch) | |
tree | 927582cc3ad9a0a5f46acea8b007759cff8f8794 /src/sim | |
parent | ecf68fac40feb7dc5ba8eba5ebc7f07045b088bb (diff) | |
download | gem5-4ff1b165d007c50c0c4700eb8ecafa1e700bc7aa.tar.xz |
syscall_emul: extend sysinfo system call to include mem_unit
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/syscall_emul.hh | 5 |
1 files 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<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()); |