258c258
< /* 192 */ SyscallDesc("mmap2", unimplementedFunc),
---
> /* 192 */ SyscallDesc("mmap2", mmapFunc<ArmLinux>),
511a512,529
>
> ArmISA::IntReg
> ArmLinuxProcess::getSyscallArg(ThreadContext *tc, int i)
> {
> // Linux apparently allows more parameter than the ABI says it should.
> // This limit may need to be increased even further.
> assert(i < 6);
> return tc->readIntReg(ArgumentReg0 + i);
> }
>
> void
> ArmLinuxProcess::setSyscallArg(ThreadContext *tc, int i, ArmISA::IntReg val)
> {
> // Linux apparently allows more parameter than the ABI says it should.
> // This limit may need to be increased even further.
> assert(i < 6);
> tc->setIntReg(ArgumentReg0 + i, val);
> }