I use the Alpha full system file and cross compiler( gcc-4.3.2, glibc-2.6.1 (NPTL,x86/32) on the download page(http://m5sim.org/wiki/index.php/Download) Then I write a simple "hello world" program #include <stdio.h> int main() { printf("Hi myrice!\n"); } I compile this program with command line: alphaev67-unknown-linux-gnu-gcc -g -static -o test test.c
I copy this file to the disk image and run on ALPHA_FS but when I type ./test the result always be Segmentation Fault I do the check: 1. copy <m5>/tests/test-progs/hello/bin/alpha/linux/hello to the disk image and run, the result is correct with "Hello world!" 2. run my program under ALPHA_SE mode, the result is also correct: M5 Simulator System Copyright (c) 2001-2008 The Regents of The University of Michigan All Rights Reserved M5 compiled Apr 6 2011 18:04:09 M5 revision f299139501f7 7719 default tip M5 started Apr 26 2011 14:17:46 M5 executing on myrice-laptop command line: build/ALPHA_SE/m5.debug configs/example/alphase.py Global frequency set at 1000000000000 ticks per second 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000 **** REAL SIMULATION **** info: Entering event queue @ 0. Starting simulation... info: Increasing stack size by one page. Hi myrice! hack: be nice to actually delete the event here Exiting @ cycle 524100 because target called exit()
_______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
