Thanks Gabe it worked. All I did was change the name field in
unameFunc from "2.6.26" to "2.6.31.1" (the latest one in the
menuconfig of ct-ng) and it ran without any errors/panics.

I guess it's just a sanity check sort of thing in the M5 code.

Malek

On Fri, Jun 25, 2010 at 1:45 PM, Gabe Black <gbl...@eecs.umich.edu> wrote:
> Different versions of glibc depend on different versions of the linux
> kernel, and it looks like the one you're using wants something newer
> than what M5 is claiming to be. You can adjust that in the uname
> emulation function in src/arch/alpha/linux/process.cc, but there may
> still be some functionality glibc starts to use that we're not
> providing. That field is currently set to 2.6.26 which isn't that old so
> maybe more is going on. At that low a cycle count you're almost
> certainly executing early code in glibc bringup. Getting a different
> cross compiler is reasonable, but you might also want to try adjusting
> that field and see what happens.
>
> The panic is probably some other problem related to code that's not
> normally exercised either in M5 or the workload or a combination of the
> two, likely a simulated NULL pointer to a structure being dereferenced.
>
> Gabe
>
> Malek Musleh wrote:
>> Hello,
>>
>> I am trying to build an Alpha Cross Compiler using crosstool, but am
>> able to successfully build it and compile some sample test programs,
>> but when I try to run it in M5 (Alpha_SE mode) i get an error saying:
>>
>>
>> FATAL: kernel too old
>> panic: Tried to access unmapped address 0x30.
>>  @ cycle 316500
>>
>> Now I tried compiling this test program using the prebuilt Alpha Cross
>> Compilers on the M5 Wiki page, and they run just fine in M5. Could
>> someone provide the specific menuconfig for ct-ng for which the ones
>> on the website were built, as well as which version of crosstool was
>> used?
>>
>> The options I used were derived from the Parsec Report on M5 (from
>> University of Texas-Austin)
>>
>>
>> • Target options
>>      – Target Architecture - alpha
>>      – Variant - ev67
>> • Operating System
>>      – Target OS - linux
>> • Binary utilities
>>      – binutils version - 2.19.1
>> • C compiler
>>      – gcc version - 4.3.4
>>      – Additional supported languages: C++
>> • C-library
>>      – C library - glibc
>>      – glibc version - 2.6.1
>>      – Threading implementation to use - nptl
>>
>> The only difference I see between this set of configuration and the
>> one I can tell from the  prebuilt one on the M5 wiki is the gcc
>> version (4.3.2 instead of 4.3.4) but I don't think that's where the
>> error is coming from. I thought maybe it was an issue of 32-bit /
>> 64-bit machine on which I was building the cross compiler, but I tried
>> using both the 32-bit/64-bit prebuilt cross compilers, but my program
>> still executed just fine in M5 regardless of which was prebuilt
>> compiler was used.
>>
>>
>> My other question is in regards to references of how to modify the
>> alpha cross compiler to recognize new instructions that I add to the
>> ISA (my reason for building the cross compiler myself as opposed to
>> using the prebuilt ones). I came across this previous thread:
>> http://www.mail-archive.com/m5-users@m5sim.org/msg03131.html
>> and see that I have to modify tc-alpha.c/tc-alpha.h in the gas/config
>> directory, but I can't seem to find some more specifics as to
>> what/where in those files? Suggestions/directions on this?
>>
>> Thanks.
>>
>>
>> Malek
>> _______________________________________________
>> m5-users mailing list
>> m5-users@m5sim.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>
>
> _______________________________________________
> m5-users mailing list
> m5-users@m5sim.org
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to