projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecf68fa
)
syscall_emul: extend sysinfo system call to include mem_unit
author
Brandon Potter
<brandon.potter@amd.com>
Thu, 15 Dec 2016 18:14:41 +0000
(13:14 -0500)
committer
Brandon Potter
<brandon.potter@amd.com>
Thu, 15 Dec 2016 18:14:41 +0000
(13:14 -0500)
src/sim/syscall_emul.hh
patch
|
blob
|
history
diff --git
a/src/sim/syscall_emul.hh
b/src/sim/syscall_emul.hh
index c11e9865f2c1a538d339d7bbccb08a228d58a5a7..53da9197b7b0c6116fd5e467f9bcc4e22aee420d 100644
(file)
--- 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());