I've applied that change to our repository.

Thanks,
Ali

On Mar 4, 2006, at 2:18 PM, Jos Delbar wrote:

Hey,

The pre_F64_stat structure in alpha_tru64_process.cc seems to have an incorrect
field alignment. The following structure should be better:

    struct pre_F64_stat {
        dev_t   st_dev;
        ino_t   st_ino;
        mode_t  st_mode;
        nlink_t st_nlink;
        uint16_t st_pad0;  // <-- (the compiler may automatically pad here)
        uid_t   st_uid;
        gid_t   st_gid;
        dev_t   st_rdev;
        uint32_t std_pad1; // <--
        off_t   st_size;
        time_t  st_atimeX;
        int32_t st_uatime;
        time_t  st_mtimeX;
        int32_t st_umtime;
        time_t  st_ctimeX;
        int32_t st_uctime;
        uint32_t st_blksize;
        int32_t st_blocks;
        uint32_t st_flags;
        uint32_t st_gen;
    };

I discovered this when comparing the system call behaviour of the perlbmk benchmark in SimpleScalar and M5. The benchmark calls pre_F64_fstat before reading the input script and uses the blksize field as the nbytes parameter for later read calls. SimpleScalar is calling read with nbytes 4096, while M5 was calling read with nbytes 8, which is actually the value of the blocks field
instead of the blksize field.

Regards,

Jos Delbar
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel? cmd_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users

Reply via email to