Vince Weaver wrote: > Hello > > Here are the promised patches that improve system call support on X86_SE. > These are sent as plain patches as I don't expect them to get applied > without some discussion. > > With the patches applied, many of the integer spec2k benchmarks work. > This includes gcc, gzip, bzip2, parser, and crafty. >
Great! > Most of the rest of the benchmarks fail due to lack of x87 floating point, > although perl, mgrid, and fma3d still have some unimplemented syscalls > that need to be addressed (getdents64, ftruncate64, gettid). > We actually support SSE better than x87 as of fairly recently, so you might want to get gcc to use that for floating point to get things working. I have fleshing out x87 on my hypothetical to do list, but I don't know how long it'll take to get done. > As I think is commonly known, the m5 system call infrastructure could use > an overhaul. The Linux system calls should be grouped together, instead > of spread out among the architectures, with two variants, 32 and 64. This > would avoid a lot of duplicated code. Unfortunately I don't have the time or > the resources to do this cleanup. > Thank you for implying that you otherwise would, since as always we appreciate helping hands. The common system call functions are currently gathered up in src/sim/syscall_emul.(hh | cc). Unfortunately, Linux sometimes tries to match flags and data structures somewhat with the other major OSes on whatever architecture you're using. For instance, I believe the flags for the "open" system call are patterned after Solaris's. I may be misremembering (MIPS maybe?), but there are cases like that. Also, even when the actual content is the same the size of the different members of the various data structures changes, and the ABI changes alignment requirements. On ARM there are even two incompatible ABIs for the same architecture and OS, although we only support one. I think there's been at least a superficial effort to factor out the common parts and template on, say, an ISA's definition of a particular data structure as necessary, but pulling the whole thing into a common spot for all ISAs is likely not feasible in the common case. Gabe _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
