On 11/01/10 07:23, Veydan Wu wrote: > Hi, all. I am using M5 to run spec2006. I wonder whether the mmap() > and mremap() has been implemented or not. I think they involve many > aspects of the system, I am not sure whether I can just copy the file > content to the memory. If they have been implemented, please point me > to a source version. I am currently using m5-stable-94c016415053. thanks. > > -- > Regards, > > Weidan > > > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>From src/sim/syscall_emul.hh: /// Target mmap() handler. /// /// We don't really handle mmap(). If the target is mmaping an /// anonymous region or /dev/zero, we can get away with doing basically /// nothing (since memory is initialized to zero and the simulator /// doesn't really check addresses anyway). Always print a warning, /// since this could be seriously broken if we're not mapping /// /dev/zero. // /// Someday we should explicitly check for /dev/zero in open, flag the /// file descriptor, and fail (or implement!) a non-anonymous mmap to /// anything else. Gabe
_______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
