Review Board 2.0.15


syscall_emul: fix warn_once behavior

Review Request #2726 - Created April 2, 2015 and submitted - Latest diff uploaded

Information
Steve Reinhardt
gem5
default
Reviewers
Default
Changeset 10773:20d671d6ee6d
---------------------------
syscall_emul: fix warn_once behavior

The current ignoreWarnOnceFunc doesn't really work as expected,
since it will only generate one warning total, for whichever
"warn-once" syscall is invoked first.  This patch fixes that
behavior by keeping a "warned" flag in the SyscallDesc object,
allowing suitably flagged syscalls to warn exactly once per
syscall.